Shell standardization (for c.std.unix)
Doug Gwyn
gwyn at smoke.brl.mil
Thu Jan 24 10:57:04 AEST 1991
Submitted-by: gwyn at smoke.brl.mil (Doug Gwyn)
In article <17155 at cs.utexas.edu> jack at cwi.nl (Jack Jansen) writes:
>I don't see any problem in the shell reading the first line and
>checking it for #!/bin/sh.
Shells that have done this (e.g. some csh implementations on UNIX System V)
have definitely caused problems. For example, Most of my shell scripts
start with #!/usr/5bin/sh to ensure System V semantics on BSD systems;
however, on a genuine UNIX System V system I was expecting the script to
be interpreted by /bin/sh (even if executed by csh). We discovered that
some overly-"helpful" implementations of csh on System V, however, went
ahead and tried to find /usr/5bin/sh, which of course made the execution
fail.
Volume-Number: Volume 22, Number 80
More information about the Comp.std.unix
mailing list