Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!rutgers!modus!gear!petruz!zaphod From: zaphod@petruz.sublink.ORG (Pietro Caselli) Newsgroups: comp.unix.internals Subject: I have a file named "-" Message-ID: <128.27C67FFF@petruz.sublink.ORG> Date: 23 Feb 91 14:21:22 GMT Organization: Pietro Caselli -Via P.Mattiolo 4- 40139 Bologna Italy Lines: 23 In an article of <26 Feb 91 05:28:22 GMT> (Benjamin H. Cowan) writes: > I have a file whose name consists of the single character "-". I can't >rm it or mv it or cat it or more it or anything to it. How can I get rid >of >it? Just unlink It. pippo() { int i if((i=unlink("-"))== -1) printf("Sorry ... on Minix it works !\n"); else printf("Hey ma ... look it works !\n") } -- . | Pietro Caselli | I had a word to say, But'tis not quite the | ...!otello!gear!petruz!zaphod | time. The best of any man's word or say,is | zaphod@petruz.sublink.ORG | when its proper place arrives - And for its | VOICE 039-051-549423 | meaning,I keep mine till the last. (Whitman)