From: <tomas@tuxteam.de>
To: vapnik spaknik <vapniks@yahoo.com>
Cc: guile users mailing list <guile-user@gnu.org>
Subject: Re: system command output different in guile than on command line
Date: Wed, 5 Aug 2020 14:24:49 +0200 [thread overview]
Message-ID: <20200805122449.GA7475@tuxteam.de> (raw)
In-Reply-To: <1535616889.169339.1596626850371@mail.yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 615 bytes --]
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
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
prev parent reply other threads:[~2020-08-05 12:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1155809260.1393834.1596576862334.ref@mail.yahoo.com>
2020-08-04 21:34 ` system command output different in guile than on command line vapnik spaknik
2020-08-05 7:47 ` tomas
2020-08-05 11:27 ` vapnik spaknik via General Guile related discussions
2020-08-05 12:24 ` tomas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200805122449.GA7475@tuxteam.de \
--to=tomas@tuxteam.de \
--cc=guile-user@gnu.org \
--cc=vapniks@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).