Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the 'A script to download and convert multiple YouTube videos' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
A script to download and convert multiple YouTube videos
Authored by: babbage on Fri, Feb 29 2008 at 9:06AM PST
Overriding core commands, especially `rm`, is a tempting but terrible idea.

It's all well & good to set yourself up with a safety net so that typing `rm` doesn't accidentally cause irreversible harm on your own computer, but what happens if you upgrade, or are working on someone else's computer, and forget that your little utility isn't providing the safety net any more?

It's a bad habit to get in to in the first place.

If you want to do something like this, give the utility function (alias, script, whatever) a different name, like "rmtrash" or just "rmt". That way, if you get in the habit of typing "rmt *" on your computer, it'll just not work elsewhere, rather than do something unexpected and unwanted.

Any good Unix book will dissuade you from using this kind of override, and there are very good reasons to heed that advice.

---

--
DO NOT LEAVE IT IS NOT REAL

[ Reply to This | # ]
A script to download and convert multiple YouTube videos
Authored by: babbage on Fri, Feb 29 2008 at 9:08AM PST
And of course, only on hitting Submit to I realize that I've attached this comment to the wrong article. *dopeslap!* :-)

http://www.macosxhints.com/article.php?story=20080224175659423

I'd paste it to the right one, but it looks like others have already beat me to it.

---

--
DO NOT LEAVE IT IS NOT REAL

[ Reply to This | # ]