[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: system command output different in guile than on command line
From: |
tomas |
Subject: |
Re: system command output different in guile than on command line |
Date: |
Wed, 5 Aug 2020 14:24:49 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Aug 05, 2020 at 11:27:30AM +0000, vapnik spaknik via General Guile
related discussions wrote:
[...]
> OK... I was being stupid.
We all are, most of us more often than not ;-)
>Another strange thing is that if I use the pipeline procedure to do the same
>thing, then I get an exit code of 1 >from the wc command, but it still returns
>the same result:
This is by design. Quote the "diff" man page:
"Exit status is 0 if inputs are the same, 1 if different,
2 if trouble."
That's probably so that you can do things in the shell like
diff a b > /dev/null && echo "same" || echo "diff"
Cheers
-- t
signature.asc
Description: Digital signature