removing file w/ ^J with csh is strange.

Jonathan I. Kamens jik at athena.mit.edu
Thu Apr 4 00:29:37 AEST 1991


In article <1991Apr1.145556.3160 at nntp-server.caltech.edu>, gwoho at 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 at Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8085			      Home: 617-782-0710



More information about the Comp.unix.questions mailing list