Hi, Thanks Alexander for the patch and suggestions on 'exit codes'.
I think that I found another small bug: When I'm trying to download file (I've used 'get1') which size is 0, the command returns status 0, but also file is created on the local machine: $lftp -c 'get1 <file sz 0> || exit 1' $echo $? # outputs 0 $ls <file sz 0> ls: <file sz 0>: No such file or directory Thanks, Ivan
