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: hf@colibri.de (Harald Fuchs) Subject: Re: Help: deleting directories with !2 in name Date: 1995/12/01 Message-ID: #1/1 X-Deja-AN: 120605526 x-pgp-fingerprint: 09 4E C4 A2 B2 C5 33 1A 79 80 5D 39 BD 9B 89 39 sender: hf@themroc.colibri.de x-disclaimer: Kore wa Colibri no iken dewa arimasen references: x-www-home-page: http://www.colibri.de/~hf/ content-type: text/plain; charset=iso-8859-1 x-pgp-public-key: finger hf@colibri.de organization: Colibri GmbH, Germany mime-version: 1.0 newsgroups: comp.unix.osf.osf1 pen@comptel.fi (Pekka Niemi) writes: > The point is to 'escape' the exclamation mark, which has a special > meaning at least in csh and bash. Escaping is done by inserting a > backslash in front of the character (like \!). Correct so far. > You can also prevent the shell from > interpreting the string by surrounding it with single quotes ('os!2_sys'). No; history substitution has a higher priority than single or double quotes in all shells I'm aware of.