luke@modus.sublink.ORG (Luciano Mannucci) (10/03/90)
#@(!!!)#!#*!*! (censored) Please stop putting lines like: # @(#) $Revision: 51.3 $ as the *first* line of standard bourne shell scripts of your HP-UX distribution (as /usr/bin/uuto!). People using /bin/csh *cannot use* such scripts (which can be *system* commands) because of the *STANDARD CONFORMANCE* of HP-UX csh: if the *first* character of a script is a # and it is *not* followed by a ! the csh spawns a "csh -c" in order to execute it. So it is and so it must be. So, don't oblige *all* your csh-using-customers to edit HP-UX system scripts so they can have their machines working. #@(!!!)#!#*!*! (censored) Please fix it! luke. - -- _ _ __ Via Aleardo Aleardi, 12 - 20154 Milano (Italy) | | | _ _| (__ PHONE : +39 2 3315328 FAX: +39 2 3315778 | | |(_)(_||_|___) Srl E-MAIL: luke@modus.sublink.ORG ______________________________ Software & Services for Advertising & Marketing
smp@hpfcdc.HP.COM (Steve Platt) (10/13/90)
| Please stop putting lines like: | # @(#) $Revision: 51.3 $ | | as the *first* line of standard bourne shell scripts of your HP-UX | distribution (as /usr/bin/uuto!). People using /bin/csh *cannot use* | such scripts (which can be *system* commands) because of the | *STANDARD CONFORMANCE* of HP-UX csh: if the *first* character of a | script is a # and it is *not* followed by a ! the csh spawns a "csh -c" | in order to execute it. So it is and so it must be. So, don't oblige | *all* your csh-using-customers to edit HP-UX system scripts so they | can have their machines working. | | Please fix it! Thanks for this input - it certainly seems to be a problem. We'll try to fix all affected scripts by the next major release. Steve Platt / HP-UX Commands / smp@hpfclj.fc.hp.com P.S. This note is not an official HP statement - it is only my personal opinion.
smp@hpfcdc.HP.COM (Steve Platt) (10/16/90)
FYI... To: luke@modus.sublink.ORG Subject: Re: Please, be standard compliant! Newsgroups: comp.sys.hp In-Reply-To: article <659@modus.sublink.ORG> of Wed, 3 Oct 1990 11:16:05 GMT Hello Luke, | Please stop putting lines like: | # @(#) $Revision: 51.3 $ | as the *first* line of standard bourne shell scripts of your HP-UX | distribution (as /usr/bin/uuto!). People using /bin/csh *cannot use* | such scripts (which can be *system* commands) because of the | *STANDARD CONFORMANCE* of HP-UX csh. Again, thanks for reporting this problem to us. We have looked at all HP-UX commands, and have modified the scripts which do not have #! as the first line. While adding a blank first line to all scripts would fix your csh problem, we felt that inserting a #! line is a much more robust solution. All of these modifications will be shipped in the next major HP-UX release. Thanks again !! Steve Platt / HP-UX Commands / smp@hpfclj.fc.hp.com
luke@modus.sublink.ORG (Luciano Mannucci) (10/19/90)
In article <5570516@hpfcdc.HP.COM>, smp@hpfcdc.HP.COM (Steve Platt) writes: | In-Reply-To: article <659@modus.sublink.ORG> of Wed, 3 Oct 1990 11:16:05 GMT | Hello Luke, | | | Please stop putting lines like: | | # @(#) $Revision: 51.3 $ | | as the *first* line of standard bourne shell scripts of your HP-UX | | distribution (as /usr/bin/uuto!). People using /bin/csh *cannot use* | | such scripts (which can be *system* commands) because of the | | *STANDARD CONFORMANCE* of HP-UX csh. | | Again, thanks for reporting this problem to us. We have looked at all | HP-UX commands, and have modified the scripts which do not have #! as | the first line. While adding a blank first line to all scripts would | fix your csh problem, we felt that inserting a #! line is a much more | robust solution. Ok. Fine. I've added a line beginning by a : which is the bourne shell *null* statement but I admit that a #! /bin/sh is *much more* robust. (The : is potentially dangerous. : is a comment works ok but : is a comment <useless> BTW creates an empty BTW file). | All of these modifications will be shipped in the next major HP-UX | release. anxiously waiting :-) luke. -- _ _ __ Via Aleardo Aleardi, 12 - 20154 Milano (Italy) | | | _ _| (__ PHONE : +39 2 3315328 FAX: +39 2 3315778 | | |(_)(_||_|___) Srl E-MAIL: luke@modus.sublink.ORG ______________________________ Software & Services for Advertising & Marketing