Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!usc!apple!altos!megadon!clp From: peter@ficc.ferranti.com (Peter da Silva) Newsgroups: comp.unix Subject: Re: Shell scripts starting with "#" Message-ID: <2227@megadon.UUCP> Date: 20 Oct 90 18:05:23 GMT References: <3695@zorba.Tynan.COM> <2136@megadon.UUCP> <2225@megadon.UUCP> Sender: clp@megadon.UUCP Reply-To: peter@ficc.ferranti.com (Peter da Silva) Organization: Xenix Support, FICC Lines: 12 Approved: clp@megadon.UUCP So if you do: #!/bin/sh : || exec /bin/sh $0 $argv:q (alias) >/dev/null 2>&1 && exec /bin/sh $0 "$@" It'll work for the bourne shell, the korn shell, and the c shell, whether or not you have #! working. Geeze. -- Peter da Silva. `-_-' +1 713 274 5180. 'U` peter@ferranti.com