Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!sdd.hp.com!uakari.primate.wisc.edu!aplcen!boingo.med.jhu.edu!jhunix!barrett From: barrett@jhunix.HCF.JHU.EDU (Dan Barrett) Newsgroups: comp.unix.amiga Subject: Re: SVR4 /bin/sh BUG Message-ID: <8699@jhunix.HCF.JHU.EDU> Date: 13 Jun 91 20:55:16 GMT References: <1991Jun05.054111.27541@digibd.com> <377@audfax.audiofax.com> <109310@becker.UUCP> Organization: The Johns Hopkins University - HCF Lines: 25 >In article <377@audfax.audiofax.com> arnold@audiofax.com (Arnold Robbins) writes: >|Amen. There's no reason to ship *three* stupid shells. ksh should have >|been installed as /bin/sh and that's it. It's not necessary that simple. You see, ksh is NOT an exact superset of sh on all flavors of UNIX. (I don't know about SVR4, though.) Therefore, standard sh scripts can break under ksh. For example, the code: while [ foo ] do command done > outfile spawns a subshell in sh, but not in ksh, on some flavors of UNIX. This can have a direct effect on variable values, for example. Dan //////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ | Dan Barrett, Department of Computer Science Johns Hopkins University | | INTERNET: barrett@cs.jhu.edu | | | COMPUSERVE: >internet:barrett@cs.jhu.edu | UUCP: barrett@jhunix.UUCP | \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/////////////////////////////////////