Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.unix.questions Subject: Re: Why does this shell program run under csh??? Message-ID: <6014@brl-smoke.ARPA> Date: Tue, 23-Jun-87 14:13:11 EDT Article-I.D.: brl-smok.6014 Posted: Tue Jun 23 14:13:11 1987 Date-Received: Fri, 26-Jun-87 05:47:02 EDT References: <7953@brl-adm.ARPA> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 12 In article <7953@brl-adm.ARPA> MCGUIRE%GRIN2.BITNET@wiscvm.wisc.EDU writes: >For example: .../myshell.sh would be run under sh, but .../myshell.csh >would be run under csh. Consider: During the early stages of porting my software to a new hostile (i.e. 4BSD) system, I use a shell script named "cc" to get things compiled right. No way am I going to edit a zillion Makefiles to redefine "cc" to "cc.sh", then later change them back. (Admittedly augmented "make" provides a way to accomplish this through use of an environment variable, but the point is that the name of a command should encode only the command's function, not information about its type, creator, size, or other irrelevancies.)