[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: chown and bash trashed part of system
From: |
Eric Blake |
Subject: |
Re: chown and bash trashed part of system |
Date: |
Tue, 30 Dec 2008 22:12:49 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[please keep the list in the loop]
According to Vincent Chapman on 12/30/2008 10:00 PM:
> In /home I made a .temp folder
>
> Apparently not all shells in Unix handle globbing the same way.
>
>
> In bash, sh, csh, and ksh:
>
> $ echo .*
> . .. .temp
>
> However, in zsh:
>
> % echo .*
> .temp
But that's only when it is not operating in POSIX mode. When you use zsh
as a POSIX-compatible shell, it behaves like all the others. You are
better off learning to be aware of this trap, rather than relying on the
shortcuts that one shell provides, so you don't fall prey when you move to
another machine with a different shell.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkla/0wACgkQ84KuGfSFAYCFHgCfRc8Mno3Pmg6yQVfWXdfybicK
OVoAoLGvRsiF04tduPFDN6utUgxWadfV
=atIE
-----END PGP SIGNATURE-----