zsh-users
 help / color / mirror / code / Atom feed
From: Dan Nelson <dnelson@allantgroup.com>
To: x x <pbyrne76@hotmail.com>
Cc: zsh-users@sunsite.dk
Subject: Re: exec problem
Date: Tue, 26 Nov 2002 11:51:47 -0600	[thread overview]
Message-ID: <20021126175147.GE26808@dan.emsphone.com> (raw)
In-Reply-To: <F79APNXRPmcarcR4ZDg00026268@hotmail.com>

In the last episode (Nov 26), x x said:
> In 4.0.4 when I issue an 'exec' and zsh can't find the executable it
> simply terminates without warning. This is surly not desirable
> behaviour.
> 
> In bash the shell first checks to see if the command is available and
> executable and if not it issues an appropriate error message. The
> following function approximates the bash bahaviour.

I think bash is in the minority here (and also seems to be wrong when
run as /bin/sh).  Bourne sh, ksh, zsh, and ash all exit the shell on
exec failure.  See
http://www.opengroup.org/onlinepubs/007904975/utilities/exec.html for
the X/Open description of the exec command.

-- 
	Dan Nelson
	dnelson@allantgroup.com



  parent reply	other threads:[~2002-11-26 17:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-26 13:31 x x
2002-11-26 16:55 ` John Buttery
2002-11-26 17:51 ` Dan Nelson [this message]
2002-11-26 17:41 x x
2002-11-26 18:38 ` John Buttery

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=20021126175147.GE26808@dan.emsphone.com \
    --to=dnelson@allantgroup.com \
    --cc=pbyrne76@hotmail.com \
    --cc=zsh-users@sunsite.dk \
    /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).