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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Shell Scripting

From novice to tech pro — start learning today.