From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,45755cd451a211de X-Google-Attributes: gidfee84,public From: "Joyce Cooper (EPCD)" Subject: Re: Help: deleting directories with !2 in name Date: 1995/12/12 Message-ID: #1/1 X-Deja-AN: 121746278 references: content-type: TEXT/PLAIN; charset=US-ASCII organization: US Census Bureau mime-version: 1.0 newsgroups: comp.unix.osf.osf1 **************************************************************** On 3 Dec 1995, Pekka Niemi wrote: > >> You can also prevent the shell from interpreting the string by > >> surrounding it with single quotes ('os!2_sys'). > > Harald> No; history substitution has a higher priority than single > Harald> or double quotes in all shells I'm aware of. > > Humm, depends on the shell - with csh that is true, while bash handles > it differently: > > sohvi-19:39:45> touch \! > sohvi-19:39:55> ls -l '!' > -rw-r--r-- 1 pen comptel 0 Dec 3 19:39 ! > sohvi-19:40:00> > > Though the poster didn't tell which shell was in use, and silly me didn't > consider the csh 8-( > > pen > -- > Pekka Niemi > Unix system administrator @ Comptel > Tel. +358-0-7001 1613 > > the shell is csh. j.c. ______________________________ Joyce Cooper U.S. Census Bureau Boston Research Data Center e-mail: joycec@info.census.gov