csh command substitution brain damage

trb at masscomp.UUCP trb at masscomp.UUCP
Wed Jul 18 02:23:59 AEST 1984


While reloading my ethernet code a few minutes ago, I realized that
the line I needed was in my /etc/rc file, so I typed this to csh:

	% `grep netload /etc/rc`

and csh came back with

	`grep netload /etc/rc`: Ambiguous.

I'm surprised that I'd never tried this idiom before, and also somewhat
surprised that csh would barf on it.

This works on all sh's and barfs on all csh's around here, through
4.2BSD.

I don't have a fix and I'm not inclined to look for one, since many is
the time that csh finds any command which is interesting at all,
ambiguous.  (When I said that I was surprised that csh barfed on it, I
was not telling the whole truth.) And anyway, no real hacker would hack
a shell that wasn't written in ALGOL68.

	Andy Tannenbaum   Masscomp Inc  Westford MA   (617) 692-6200 x274



More information about the Net.bugs mailing list