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


Click here to return to the 'Install a useful set of OS X specific command line apps' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Install a useful set of OS X specific command line apps
Authored by: onebear on Jun 02, '03 12:39:52PM

As my old UNIX friend always say to me; don't set an alias with the same name as another command like 'ls' for lsmac...
You might want to use it later...so set another alias!



[ Reply to This | # ]
alias
Authored by: macubergeek on Jun 02, '03 01:01:20PM

Heh, yeh thought of that after I hit submit ;-)
lsmac -->lsm



[ Reply to This | # ]
Install a useful set of OS X specific command line apps
Authored by: mattmoss on Jun 02, '03 02:41:36PM

Why not? I do it all the time. If I need to use the original ls command, I simply type: /bin/ls

Assuming the alias is the one used more frequently, this works just peachy.



[ Reply to This | # ]
Install a useful set of OS X specific command line apps
Authored by: greed on Jun 02, '03 02:59:41PM

To temporarily drop the alias, just quote the command like so:
\ls
'ls'
"ls"



[ Reply to This | # ]
Install a useful set of OS X specific command line apps
Authored by: IslandDan on Jun 03, '03 08:53:35AM

The reason not to is that shell scripts may use the command and fail.



[ Reply to This | # ]
Install a useful set of OS X specific command line apps
Authored by: carsten on Jun 03, '03 08:39:06PM

You can always "unalias ls" before running any script that requires the regular unix ls.

Probably better to just alias lsmac to something else besides "ls", such as "alias lsm lsmac".

Carsten



[ Reply to This | # ]