You are not logged in.
Pages: 1
:!:
using wombat, 2.6.7 and coreutils 5.2.1
chown -R foo:users .*
goes down to / and changes ( or tries to change ) ownership on every directory and file in the root tree.
:shock:
I wondered why it was taking so long.
This is wrong, it should only touch things above cwd, and it should only change those that are hidden .
chown -R foo:users *
behaves as it should.
:!:
--(*(cs25x--));
Offline
".." (parent dir) falls in to ".*", so it goes backwards.
That's my guess.
"Contrary to popular belief, penguins are not the salvation of modern technology. Neither do they throw parties for the urban proletariat."
Offline
I dont think it did that before.
It is reasonable to expect that .. is not covered by .*,
How else can you recursively alter hidden files and folders?
There was an old Peanut, about 8.3 that was messed & that is the only time that I have seen it before. IIRC the problem was that somebody ripped out a ".." test, and it was not just chown, it was all of that family that use -R for recursion.
--(*(cs25x--));
Offline
To change dot files you need something like
chown -R foo:users .[^.]*
Offline
I just installed Slackware 10.0 on a spare partition, and it behaves the way it should.
chown -R foo:users .*
should not change every file in the system.
--(*(cs25x--));
Offline
Either way, the regexp expansion is happening in bash, not in coreutils. Is slackware using bash 3.0 like we are?
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
Slackware is using bash 2.05b
--(*(cs25x--));
Offline
Pages: 1