zsh-workers
 help / color / mirror / code / Atom feed
* Zsh reporting bad return status of commands
@ 1997-01-27 22:15 Clint Olsen
  1997-01-28 14:58 ` Zefram
  0 siblings, 1 reply; 5+ messages in thread
From: Clint Olsen @ 1997-01-27 22:15 UTC (permalink / raw)
  To: zsh-workers

This is version 3.0.0.

On HP-UX for some reason, 3.0 started doing this:

/foo not found
zsh: exit 2     ls -AF /foo

It doesn't exhibit this behavior on SunOS.  It's not that big of a deal,
but it's rather irritating to see the extra output.

Thanks,

-Clint


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Zsh reporting bad return status of commands
  1997-01-27 22:15 Zsh reporting bad return status of commands Clint Olsen
@ 1997-01-28 14:58 ` Zefram
  1997-01-28 16:56   ` Clint Olsen
  0 siblings, 1 reply; 5+ messages in thread
From: Zefram @ 1997-01-28 14:58 UTC (permalink / raw)
  To: Clint Olsen; +Cc: zsh-workers

Clint Olsen wrote:
>On HP-UX for some reason, 3.0 started doing this:
>
>/foo not found
>zsh: exit 2     ls -AF /foo
>
>It doesn't exhibit this behavior on SunOS.  It's not that big of a deal,
>but it's rather irritating to see the extra output.

This output is controlled by a zsh option, PRINT_EXIT_VALUE.  Use
"setopt noprintexitvalue" to disable it.  Or, since it's off by
default, remove the "setopt printexitvalue" from your
.z(profile|login|sh(rc|env)).

-zefram


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Zsh reporting bad return status of commands
  1997-01-28 14:58 ` Zefram
@ 1997-01-28 16:56   ` Clint Olsen
  1997-01-28 17:13     ` Zefram
  0 siblings, 1 reply; 5+ messages in thread
From: Clint Olsen @ 1997-01-28 16:56 UTC (permalink / raw)
  To: zsh-workers

On Jan 28, Zefram wrote:
> Clint Olsen wrote:
> >On HP-UX for some reason, 3.0 started doing this:
> >
> >/foo not found
> >zsh: exit 2     ls -AF /foo
> >
> >It doesn't exhibit this behavior on SunOS.  It's not that big of a deal,
> >but it's rather irritating to see the extra output.
> 
> This output is controlled by a zsh option, PRINT_EXIT_VALUE.  Use
> "setopt noprintexitvalue" to disable it.  Or, since it's off by
> default, remove the "setopt printexitvalue" from your
> .z(profile|login|sh(rc|env)).

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 ~# uname -a
SunOS pdxgp1 4.1.3 10 sun4m

pdxgp1 ~# setopt
allexport
autolist
automenu
interactive
login
monitor
printexitvalue
rcexpandparam
shinstdin
zle

pdxgp1 ~# ls /foo
/foo not found

-Clint
-- 
Clint Olsen                                        .  __
olsenc@ichips.intel.com                              /o \/  o
                                                  .  \__/\


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Zsh reporting bad return status of commands
  1997-01-28 16:56   ` Clint Olsen
@ 1997-01-28 17:13     ` Zefram
  1997-01-29 12:52       ` Risto J Laitinen
  0 siblings, 1 reply; 5+ messages in thread
From: Zefram @ 1997-01-28 17:13 UTC (permalink / raw)
  To: Clint Olsen; +Cc: zsh-workers

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.

-zefram


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Zsh reporting bad return status of commands
  1997-01-28 17:13     ` Zefram
@ 1997-01-29 12:52       ` Risto J Laitinen
  0 siblings, 0 replies; 5+ messages in thread
From: Risto J Laitinen @ 1997-01-29 12:52 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1997-01-29 13:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-27 22:15 Zsh reporting bad return status of commands 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

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).