Subject: Re: a suggestion for improving shell behaviour....
To: NetBSD Userlevel Technical Discussion List <tech-userlevel@netbsd.org>
From: SAVE MY WALRUS <greywolf@starwolf.com>
List: tech-userlevel
Date: 02/18/1999 17:17:00
Greg A. Woods sez:
/*
* As no doubt most everyone on this list knows, most Unix shells will try
* to run a "program" as a script if the kernel refuses to exec() it as a
* binary.
starwolf% file /tmp/cat
/tmp/cat: PA-RISC1.0 shared executable dynamically linked
starwolf% ls -l /tmp/cat
-r-xr-xr-x 1 greywolf wheel 16384 Feb 18 17:11 /tmp/cat
starwolf% /tmp/cat
/tmp/cat: Exec format error. Wrong Architecture.
starwolf% echo $shell
/bin/csh
starwolf%
So what's the problem? I'm using a NetBSD shell. :-)
[sounds like sh/bash/ksh need csh's exec smarts. don't shoot me.]
*/
--*greywolf;
--
"Your chief has even inscribed his name on the sole of my boot."