Link to home
Create AccountLog in
Avatar of Xetroximyn
XetroximynFlag for United States of America

asked on

tcsh doing strange stuff when rm'ing a folder

So I do
rm -rf foldername

Open in new window


And I wind up with all the files in the folder I just deleted in my current folder but with zero length like this...

-rw-rw-rw-   1 tle cati     0 Apr  6 17:54 srep0304
-rw-rw-rw-   1 tle cati     0 Apr  6 17:54 srep0306
-rw-rw-rw-   1 tle cati     0 Apr  6 17:54 srep0307
-rw-rw-rw-   1 tle cati     0 Apr  6 17:54 srep0309
-rw-rw-rw-   1 tle cati     0 Apr  6 17:54 suspdatal655s.xls

Open in new window


I have never seen anything like it... any ideas?
Avatar of Xetroximyn
Xetroximyn
Flag of United States of America image

ASKER

Here is a full example...
/home/user/test % ll -R
.:
total 4
drwxrwxrwx 3 user cati 4096 Apr  6 18:03 folder1

./folder1:
total 12
-rw-rw-rw- 1 user cati    5 Apr  6 18:03 file1a
-rw-rw-rw- 1 user cati    5 Apr  6 18:03 file1b
drwxrwxrwx 2 user cati 4096 Apr  6 18:03 folder2

./folder1/folder2:
total 8
-rw-rw-rw- 1 user cati 5 Apr  6 18:03 file2a
-rw-rw-rw- 1 user cati 5 Apr  6 18:03 file2b
/home/user/test % rm -rf folder1
/home/user/test % ll -R
.:
total 0
-rw-rw-rw- 1 user cati 0 Apr  6 18:04 file1a
-rw-rw-rw- 1 user cati 0 Apr  6 18:04 file1b
-rw-rw-rw- 1 user cati 0 Apr  6 18:04 file2a
-rw-rw-rw- 1 user cati 0 Apr  6 18:04 file2b
/home/user/test %

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of serialband
serialband
Flag of Ukraine image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
thanks - it was an alias issue.... i forgot our rm commands are aliased to some provided by a software provider who's software is primarily what we run on our server.  It is a bug with their command.