On 15 April 2014 10:56, Dag-Erling Smørgrav <des@xxxxxx> wrote: > Yves Dorfsman <yves@xxxxxxxxx> writes: >> Dag-Erling Smørgrav <des@xxxxxx> writes: >> > What returns exit code 141? >> I suspect bash is returning the exit code from cat. > > What OS are you on? It is impossible for cat(1) on either Linux (GNU > coreutils) or BSD to return anything other than 0 or 1. It can when killed by a signal: On FreeBSD: [10004 eitan@gravity (100%) ~ ]%cat /dev/zero [1] 29728 terminated cat /dev/zero [10005 eitan@gravity (100%) ~ !143!]%echo $? 143 > > DES > -- > Dag-Erling Smørgrav - des@xxxxxx > _______________________________________________ > openssh-unix-dev mailing list > openssh-unix-dev@xxxxxxxxxxx > https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev -- Eitan Adler _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev@xxxxxxxxxxx https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev