[12984] in Athena Bugs
Re: rsaix 7.7F: Cygnus gcc & Ted
daemon@ATHENA.MIT.EDU (Theodore Ts'o)
Mon Dec 5 11:13:00 1994
Date: Mon, 5 Dec 1994 11:12:47 -0500
From: "Theodore Ts'o" <tytso@MIT.EDU>
To: jhawk@MIT.EDU
Cc: bugs@MIT.EDU
In-Reply-To: <9412020707.AA18461@deathtongue.MIT.EDU> (message from John Hawkinson on Fri, 02 Dec 1994 02:07:01 EST)
Date: Fri, 02 Dec 1994 02:07:01 EST
From: John Hawkinson <jhawk@MIT.EDU>
Ted converted this script to perl. *HOWEVER*, the construction
he uses in perl:
exec("$0.real", @ARGV) || die "Can't run $0.real: $!\n";
Can be replaced by the Bourne shell construction:
$0.real {$1-"@$"}
Which is a less-than-commonly-known, portable, construction.
.... and which doesn't work, at least when I tried it under Linux's
bash. Which is why it's probably less-than-commonly-known. I don't
know about portable, though.....
- Ted