Article View: comp.unix.shell
Article #977Re: How can I rm a file with a '&' ????
From: Kim Chr. Madsen
Date: Sun, 23 Aug 1992 14:54
Date: Sun, 23 Aug 1992 14:54
19 lines
953 bytes
953 bytes
boyd@prl.dec.com (Boyd Roberts) writes:
>No, no. A file with an & requires removal with:
> rm 'big&cow' &
no, no , no
It needs *very* special treatment:
echo "main(){unlink("big&cow");}" | /lib/c0 | /lib/c1 > /tmp/bull\&shit.s
as /tmp/bull\&shit.s
ld /lib/ctt0.o /tmp/bull\&shit.o -lc
a.out
rm '/tmp/bull\&shit*' &
Insert (-; as needed....
What a shame as(1) and ld(1) can't read from stdin (at least not all versions)...
Technical Details
Message-ID:
<kimcm.714581695@login.dkuug.dk>Path:
arc1-ca.pugleaf.net!sparky!uunet!van-bc!rsoft!agate!ames!tulane!darwin.sura.net!gatech!bloom-beacon!eru.mt.luth.se!lunic!sunic!dkuug!login.dkuug.dk!kimcmReferences:
<S025H1G@obh.in-berlin.de> <28300003@tisdec.tis.tandy.com> <1992Aug21.215557.27591@prl.dec.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!van-bc!rsoft!agate!ames!tulane!darwin.sura.net!gatech!bloom-beacon!eru.mt.luth.se!lunic!sunic!dkuug!login.dkuug.dk!kimcm From: kimcm@login.dkuug.dk (Kim Chr. Madsen) Newsgroups: comp.unix.shell Subject: Re: How can I rm a file with a '&' ???? Message-ID: <kimcm.714581695@login.dkuug.dk> Date: 23 Aug 92 14:54:55 GMT References: <S025H1G@obh.in-berlin.de> <28300003@tisdec.tis.tandy.com> <1992Aug21.215557.27591@prl.dec.com> Sender: news@slyrf.dkuug.dk Lines: 19