gwoho@nntp-server.caltech.edu (g liu) (04/01/91)
i accidently created a file named "aa " with a bad program. trying to remove it with csh, i used rm "aa\ " but it said that it could not remove the file: "a " so i tried rm "aaa\ " and it worked. this seems very strange to me, and i can not figure out why it works that way. i've not tried doing such things with sh. i am running xenix2.0, a 6 year old os. please explain to my why this is so. i thank you in advance for any replies. gwoho liu
jik@athena.mit.edu (Jonathan I. Kamens) (04/03/91)
In article <1991Apr1.145556.3160@nntp-server.caltech.edu>, gwoho@nntp-server.caltech.edu (g liu) writes: |> i accidently created a file named "aa |> " with a bad program. trying to remove it with csh, i used |> |> rm "aa\ |> " |> |> but it said that it could not remove the file: "a |> " |> so i tried rm "aaa\ |> " |> and it worked. this seems very strange to me, and i can not |> figure out why it works that way. i've not tried doing such things |> with sh. % touch "aa\ " % ls aa? % rm "aa\ " % ls % Works for me. Looks like a bug in your version of csh. -- Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8085 Home: 617-782-0710