Hi, I'm having some trouble getting lftp to give valid exit codes.
Running: lftp -c 'set cmd:fail-exit true; set net:max-retries 1; set net:timeout 2s; open 10.0.0.1; ls' ; echo $? gives: ls: Fatal error: max-retries exceeded 1 as expected, but: lftp -c 'set cmd:fail-exit true; set net:max-retries 1; set net:timeout 2s; open 10.0.0.1; recls' ; echo $? gives: Fatal error: max-retries exceeded 0 Now I am expecting the exit code to reflect the connection attempt (open), not the action (ls/recls). The result is the same with or without "set cmd:fail-exit true", so I'm not even sure that is working. Any insight? Cheers, MAL
