Hi,

I'm using the lftp 3.0.6 on Solaris 8 for some automated ftp tasks.
and I noticed that if I execute some command on a local machine (with !)
which returns something different then 0, lftp always returns 0, i.e.

$lftp -c '
!<some bad cmd> || exit 1
exit 2'

$echo $? # returns 2, not 1

or worst

$lftp -c '!exit 1 || exit 1'
$echo $? # returns 0, not 1

is it possible this to be fixed?

Thanks,
Ivan


Reply via email to