From: pen@comptel.fi (Pekka Niemi)
Subject: Re: Help: deleting directories with !2 in name
Date: 1995/12/03 [thread overview]
Message-ID: <877n0ehwj6.fsf@sohvi.comptel.fi> (raw)
In-Reply-To: Pine.SOL.3.91.951130153702.25664A-100000@info.census.gov
>> 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
next prev parent reply other threads:[~1995-12-03 5:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-11-30 5:00 Help: deleting directories with !2 in name Joyce Cooper (EPCD)
1995-11-30 5:00 ` Philip A. Schueller
1995-12-01 5:00 ` Pekka Niemi
1995-12-01 5:00 ` Harald Fuchs
1995-12-03 5:00 ` Pekka Niemi [this message]
1995-12-12 5:00 ` Joyce Cooper (EPCD)
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox