home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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)...
-