Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: BSD_ECHO
- X-seq: zsh-workers 1979
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: coleman@xxxxxxxxxxxxxxx (Richard Coleman)
- Subject: Re: BSD_ECHO
- Date: Thu, 15 Aug 1996 02:32:24 +0200 (MET DST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <199608142045.QAA00597@xxxxxxxxxxxxxxxxxxxxxxxxx> from Richard Coleman at "Aug 14, 96 04:45:31 pm"
- Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary
- Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368
Richard wrote:
[...]
> > I still object to having a configure test for the default behavior of
> > BSD_ECHO when run as "sh". This should NOT be something that varies
> > from one installation to the next!
[...]
> I completely agree...
>
> The options for zsh when called as sh, should not depend on
> your current configuration. It is especially bad for us sysadmins
> who work on heterogenous environments.... I don't want zsh working
> one way on one machine, and another way on another machine.
Seing the big opposition I'll remove that configure check. However this
was not a completely unreasonable change. I use zsh as /bin/sh on Linux
where the default /bin/sh is bash. I bet that without BSD_ECHO some
scripts will break.
On the other hand someone else reported that on an other system zsh broke
some scripts because of BSD_ECHO. It is possible to turn on BSD_ECHO iff
zsh is invoked as /bin/sh (with full pathname) and configure detected that
/bin/sh use BSD_ECHO but it would not be set by emulate or alternatively is
would be always set or unset by emulate. On systems where zsh is installed
as /bin/sh the system administrator probably knows enough about how to set
the desired default and others won't be affected by this change.
I know that prefect solution is not possible. Even POSIX did not dare to
define the default echo behaviour. If one wants to write a portable script
it must begin with something like #! /usr/local/bin/zsh -f. We have 7
different OS'es in an NFS/NIS network where zsh is very useful as portable
script language (and as a login shell of course).
Zoltan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author