3 ?RCS: Copyright (c) 1997, Chip Salzenberg
4 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
6 ?RCS: You may redistribute only under the terms of the Artistic License,
7 ?RCS: as specified in the README file that comes with the distribution.
8 ?RCS: You may reuse parts of this distribution only within the terms of
9 ?RCS: that same Artistic License; a copy of which may be found at the root
10 ?RCS: of the source tree for dist 4.0.
13 ?RCS: Revision 3.0.1.1 1997/02/28 16:20:13 ram
14 ?RCS: patch61: created
17 ?MAKE: -pick wipe $@ %<
19 ?S: This variable contains the full pathname of the shell used
20 ?S: on this system to execute Bourne shell scripts. Usually, this will be
21 ?S: /bin/sh, though it's possible that some systems will have /bin/ksh,
22 ?S: /bin/pdksh, /bin/ash, /bin/bash, or even something such as
24 ?S: This unit comes before Options.U, so you can't set sh with a -D
25 ?S: option, though you can override this (and startsh)
26 ?S: with -O -Dsh=/bin/whatever -Dstartsh=whatever
29 ?C: This symbol contains the full pathname to the shell used on this
30 ?C: on this system to execute Bourne shell scripts. Usually, this will be
31 ?C: /bin/sh, though it's possible that some systems will have /bin/ksh,
32 ?C: /bin/pdksh, /bin/ash, /bin/bash, or even something such as
35 ?H:#define SH_PATH "$sh" /**/
37 ?T:xxx try pth p SYSTYPE
38 ?LINT:extern maintloc maintname
40 ?X: Be quiet unless something unusual happens because this gets
41 ?X: loaded up even before options are processed.
42 ?X: Can't use ./loc because that depends on startsh, which, in turn
43 ?X: depends on this unit.
45 : Find the basic shell for Bourne shell scripts
48 ?X: SYSTYPE is for some older MIPS systems.
49 ?X: I do not know if it is still needed.
51 *bsd*|sys5*) xxx="/$SYSTYPE/bin/sh";;
54 if test -f "$xxx"; then
57 : Build up a list and do a single loop so we can 'break' out.
58 pth=`echo $PATH | sed -e "s/$p_/ /g"`
59 for xxx in sh bash ksh pdksh ash; do
61 try="$try ${p}/${xxx}"
65 if test -f "$xxx"; then
68 elif test -f "$xxx$_exe"; then
71 elif test -f "$xxx.exe"; then
80 ?X: fd 4 isn't open yet...
83 $me: Fatal Error: I can't find a Bourne Shell anywhere.
85 Usually it's in /bin/sh. How did you even get this far?
86 Please contact me (<$maintname>) at <$maintloc> and
87 we'll try to straighten this all out.