zsh-users
 help / color / mirror / code / Atom feed
From: "x x" <pbyrne76@hotmail.com>
To: zsh-users@sunsite.dk
Subject: Re: exec problem
Date: Tue, 26 Nov 2002 17:41:47 +0000	[thread overview]
Message-ID: <F57w8HbqlIeN8RJnl3X00002b19@hotmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1429 bytes --]

John Buttery wrote:

>* x x <pbyrne76@hotmail.com> [2002-11-26 13:31:25 +0000]:
>
>>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.
>>
>>[snip function to create a "safe" exec]
>>
>>Shouldn't this be builtin?
>
>
>  My gut feeling is that zsh's behaviour in this regard is correct,
>since I always thought there was a core belief (among UNIX software in
>general, not just zsh) that the software should "do what I say, exactly
>as I say, and not second-guess me".
>  However, having said that, I think your function is quite useful
>and that a lot of people will like/use it (possibly myself included).
>Thanks for taking the time to write it. :)
>

But zsh doesn't do what the user says and certainly
isn't doing what he wants. From a users perspective
an exec has two parts:
1. run a new command without forking
2. terminate the shell

Since zsh cannot complete the first part it should not try to
do the second. More generally if a composite action is composed
of several steps, each of which must be completed in order
for the composite to be completed, then an exception should
be generated if any step fails causing the complete action
to fail gracefully.


_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

[-- Attachment #2: Type: text/html, Size: 133 bytes --]

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

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

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=F57w8HbqlIeN8RJnl3X00002b19@hotmail.com \
    --to=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).