zsh-workers
 help / color / mirror / code / Atom feed
From: srb@cuci.nl (Stephen R. van den Berg)
To: Zefram <A.Main@dcs.warwick.ac.uk>
Cc: zsh-workers@math.gatech.edu
Subject: Re: Procmail rejects zsh as being "broken"
Date: Fri, 2 Aug 1996 03:20:32 +0200	[thread overview]
Message-ID: <199608020120.DAA19010@hera.cuci.nl> (raw)
In-Reply-To: Zefram's message as of 1996 Aug 2 Fri  1:59. <19720.199608020100@stone.dcs.warwick.ac.uk>

Zefram <A.Main@dcs.warwick.ac.uk> wrote:
>I always set SHELL to /bin/sh explicitly in Makefiles.  GNU standards
>recommend this too.  This is really an example of the now deeply

Well, it's not that easy.
For a real POSIX environment, you could simply omit setting SHELL, since
the make utility will *always* set it to a /bin/sh compatible shell.

For non-posix environments, it gets a bit tricky.  Some makes set it,
some don't, some makes export the SHELL assignment to the environment,
some don't.  Then there is the possibility that the /bin/sh is a buggy
implementation with way too many bugs (some vendors delivered this
with their system).  So the users typically went and got themselves
a different shell (like pdksh, bash, zsh, whatever).  Now, if the
user is using that as his loginshell, and the shell is Bourne shell
compatible, then we'll try to use that one first.

Which is exactly why I was bothering with the zsh (in case it was more
/bin/sh compatible than the original /bin/sh installed on the system; why
wouldn't they replace the /bin/sh with a link to zsh, well, lots of
reasons: he's not the sysadmin, company policy, etc.).

>>+	*[zc]sh*) echo "Warning: really perverted make detected"; SHELL="";;

>Wouldn't it be better to do the feature tests, ignoring the name in
>$SHELL?  Maybe some perverted admin has a copy of sh under the name
>zsh.

Feature tests are difficult to make comprehensive.

>  Or even better, just use /bin/sh, which is Bourne-compatible
>everywhere, rather than accepting whatever $SHELL happens to be.

Not such a good idea, see above.
-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).
Auto repair rates: basic labor $40/hour; if you wait, $60; if you watch, $80;
if you ask questions, $100; if you help, $120; if you laugh, $140.


      reply	other threads:[~1996-08-02  1:27 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-01  8:28 Andrej Borsenkow
1996-08-01  8:40 ` Peter Stephenson
1996-08-01 11:29 ` Stephen R. van den Berg
1996-08-01 11:43   ` Peter Stephenson
1996-08-01 12:04     ` Zefram
1996-08-01 12:11       ` Peter Stephenson
1996-08-01 12:33         ` Zefram
1996-08-01 13:00           ` Peter Stephenson
1996-08-01 12:23     ` Stephen R. van den Berg
1996-08-01 13:02       ` Zoltan Hidvegi
1996-08-01 13:07         ` Bruce Stephens
1996-08-01 14:44         ` Stephen R. van den Berg
1996-08-01 14:59           ` Zoltan Hidvegi
1996-08-02  0:54             ` Zefram
1996-08-02  0:59           ` Zefram
1996-08-02  1:20             ` Stephen R. van den Berg [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=199608020120.DAA19010@hera.cuci.nl \
    --to=srb@cuci.nl \
    --cc=A.Main@dcs.warwick.ac.uk \
    --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).