Please do NOT use "/bin/test" as a command name
jpn at teddy.UUCP
jpn at teddy.UUCP
Fri Dec 13 00:02:15 AEST 1985
>What about personal aliases conflicting with csh script commands. For
>example, many people around here alias rm to rm -i. This would break
>many csh scripts. The PATH solution given in geoff's article would not
>solve this problem.
Assuming you are talking about csh aliases, this does not come up in
"sh" scripts (which was what the discussion was about). If you are
writing csh scripts, then I hope your kernel also supports the "#! xxx"
shell hack, or else the csh script startup times may be prohibatively
long. If your kernel supports this, then use "#! /bin/csh -f" to avoid
loading the user's .cshrc.
>Of course, a *very* conscientious programmer could unalias every
>potentially conflicting name he uses in a script. :-)
How about "unalias *"?
More information about the Comp.unix.wizards
mailing list