Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Why sudo alias's don't work' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Why sudo alias's don't work
Authored by: serversurfer on Oct 17, '01 08:34:11AM
Tcsh only checks the first word of each command to see if it's an alias. The command:

sudo ls; alias file

applies the alias to the file because the first word of the second command is an alias. But it's still performed via sudo because sudo applies to everything on the line.

[ Reply to This | # ]