[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Switching /bin/sh to dash without dash essential

On Fri, Jul 24, 2009 at 08:31:55AM -0700, Russ Allbery wrote:
> zsh has also historically been fairly buggy in corner cases as /bin/sh and
> requires explicit commands to make it Bourne-compatible.  Autoconf has had
> to add a bunch of workarounds for zsh as sh that I'm sure most of our
> shell scripts don't have.

Actually, if it's invoked as /bin/sh, it is supposed to be
Bourne-compatible.  That's my experience with the current version:

  lakeview ok % emulate; /bin/sh -c emulate

I don't know what other versions do.  I'm working on finding bugs with
zsh as /bin/sh; see #510358.  If anyone knows about a good /bin/sh
(POSIX, XSI, or Debian) testsuite, please let me know off-list.

brian m. carlson / brian with sandals: Houston, Texas, US
+1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only
OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

Attachment: signature.asc
Description: Digital signature

Reply to: