home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / shell / 3574 < prev    next >
Encoding:
Text File  |  1992-08-23  |  924 b   |  30 lines

  1. 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
  2. From: kimcm@login.dkuug.dk (Kim Chr. Madsen)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: How can I rm a file with a '&' ????
  5. Message-ID: <kimcm.714581695@login.dkuug.dk>
  6. Date: 23 Aug 92 14:54:55 GMT
  7. References: <S025H1G@obh.in-berlin.de> <28300003@tisdec.tis.tandy.com> <1992Aug21.215557.27591@prl.dec.com>
  8. Sender: news@slyrf.dkuug.dk
  9. Lines: 19
  10.  
  11. boyd@prl.dec.com (Boyd Roberts) writes:
  12.  
  13. >No, no.  A file with an & requires removal with:
  14. >    rm 'big&cow' &
  15.  
  16. no, no , no
  17.  
  18. It needs *very* special treatment:
  19.  
  20.     echo "main(){unlink("big&cow");}" | /lib/c0 | /lib/c1 > /tmp/bull\&shit.s
  21.     as /tmp/bull\&shit.s
  22.     ld /lib/ctt0.o /tmp/bull\&shit.o -lc
  23.     a.out
  24.     rm '/tmp/bull\&shit*' &
  25.  
  26.  
  27.  Insert (-; as needed....
  28.  
  29.  What a shame as(1) and ld(1) can't read from stdin (at least not all versions)...
  30.