From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.user Subject: Re: system command output different in guile than on command line Date: Wed, 5 Aug 2020 14:24:49 +0200 Message-ID: <20200805122449.GA7475@tuxteam.de> References: <1155809260.1393834.1596576862334.ref@mail.yahoo.com> <1155809260.1393834.1596576862334@mail.yahoo.com> <1535616889.169339.1596626850371@mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VbJkn9YxBvnuCH5J" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15828"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) Cc: guile users mailing list To: vapnik spaknik Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Aug 05 14:25:05 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k3ITh-000427-Om for guile-user@m.gmane-mx.org; Wed, 05 Aug 2020 14:25:05 +0200 Original-Received: from localhost ([::1]:39746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k3ITg-00058z-RP for guile-user@m.gmane-mx.org; Wed, 05 Aug 2020 08:25:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k3ITX-00058r-7i for guile-user@gnu.org; Wed, 05 Aug 2020 08:24:55 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:37556) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1k3ITV-0003ea-45 for guile-user@gnu.org; Wed, 05 Aug 2020 08:24:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:Date; bh=otS8LgJxYOkXCaKbv5nsBxuLry7YJP2E7G2qsFj1/v0=; b=tGrDUCrsiMKxArUlZuIgowCkxMZscBddLx0t7cxaahiWsxeLgJ/HmkMw5c3EKdokC74oaWJ7yschjVlccFwNATOp+QenWCQLBXWkS3IC4veUzU11LfzUQjmGCYAkuJqM/+krPmzWjI8cmAXUX6XE95v6Hb0EsLO53SbKQ1o5qKF8njGJ879xdEYQ6WuZhyc7kW53M9jStQNdm0dDz2wZ5EcNK6iDnMkn5wJvbxwLSllU2HaijV0B4YrANuL1FqvB7auVkm6frzhMbNO+oBfgQATgjQe15bbc+t8unL1ftefs1BMxrRMDSovKQxGL/Mrrjf/4mkK6YE4BKQzckc7xGw==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1k3ITS-00022Q-0M; Wed, 05 Aug 2020 14:24:50 +0200 Content-Disposition: inline In-Reply-To: <1535616889.169339.1596626850371@mail.yahoo.com> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/05 08:24:50 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16778 Archived-At: --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=utf-8 Content-Disposition: inline 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 --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl8qpREACgkQBcgs9XrR2kY+gACfePlQ+SpiosZbGAm/i2O2lc8h LZIAn1QZOLkiaT8EV8rHi6tJtaWcatUL =9lsk -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J--