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?
XetroximynAsked:
Who is Participating?
 
serialbandCommented:
Since you use ll, it's obvious you use aliases.  Did you alias your rm command to something else?  You can put a backslash in front of your rm command to temporarily unalias it or change the alias if you want it unset permanently.
0
 
XetroximynAuthor Commented:
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

0
 
XetroximynAuthor Commented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.