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


Click here to return to the 'At least one mistake' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
At least one mistake
Authored by: mzs on Jun 22, '04 11:30:08AM
Be careful with this hint. First-off I really cannot trust how this hint works. Possibly some operations fail due to the symlink with a silent error but others like mounting do not. But at least the mv does not do what it is intended to.

Do this command:

ls ~/Desktop/* | grep '^\.'

Now do this command:

ls -A ~/Desktop | grep '^\.'

See the difference? In shell globbing (both csh and sh type shells) * does not expand to dot files. In my listing I get a few extra files missing, and you should see at least .DS_Store and .localized missing. So when you do the mv command, any dot files you have in your Desktop folder will be lost once you delete it.

[ Reply to This | # ]

Move the whole directory
Authored by: gshenaut on Jun 22, '04 03:04:52PM
It might be better, if you want to do this, to use a sequence like
mv Desktop realDesktop
ln -s realDesktop Desktop
That way everything in Desktop gets moved, including dot files and resource forks. Also, since you are doing a rename rather than a delete, I suppose it's somewhat safer.

Greg Shenaut

[ Reply to This | # ]