zsh-workers
 help / color / mirror / code / Atom feed
From: Risto J Laitinen <rjl@bacchus.math.jyu.fi>
To: zsh-workers@math.gatech.edu
Subject: Re: Zsh reporting bad return status of commands
Date: Wed, 29 Jan 1997 14:52:35 +0200 (EET)	[thread overview]
Message-ID: <199701291252.OAA27397@bacchus.math.jyu.fi> (raw)
In-Reply-To: <25218.199701281713@stone.dcs.warwick.ac.uk>

zefram@dcs.warwick.ac.uk writes:
 > Clint Olsen wrote:
 > >Interesting.  Then it must be broken on SunOS since it is also set there
 > >but it doesn't print out the bad exit status.
 > ...
 > >pdxgp1 ~# ls /foo
 > >/foo not found
 > 
 > No, it's just that the native ls on SunOS (and Solaris) returns an exit
 > code of 0 under these circumstances.  A bug in ls?  It wouldn't be the
 > first one.

It's just the BSD variant of ls that returns 0:

kanto% uname -a
SunOS kanto 5.4 Generic_101945-41 sun4m sparc
kanto% /usr/bin/ls /foo; echo $?
/foo: No such file or directory
2
kanto% /usr/ucb/ls /foo; echo $? 
/foo not found
0


      reply	other threads:[~1997-01-29 13:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-27 22:15 Clint Olsen
1997-01-28 14:58 ` Zefram
1997-01-28 16:56   ` Clint Olsen
1997-01-28 17:13     ` Zefram
1997-01-29 12:52       ` Risto J Laitinen [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199701291252.OAA27397@bacchus.math.jyu.fi \
    --to=rjl@bacchus.math.jyu.fi \
    --cc=rjl@math.jyu.fi \
    --cc=zsh-workers@math.gatech.edu \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).