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: pen@comptel.fi (Pekka Niemi) Subject: Re: Help: deleting directories with !2 in name Date: 1995/12/03 Message-ID: <877n0ehwj6.fsf@sohvi.comptel.fi>#1/1 X-Deja-AN: 120856647 sender: pen@sohvi.comptel.fi references: organization: OY Comptel AB, +358-0-700 11 31 newsgroups: comp.unix.osf.osf1 >> 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