Xref: utzoo comp.lang.c:9152 comp.unix.wizards:7706 Path: utzoo!mnetor!uunet!vsi!friedl From: friedl@vsi.UUCP (Stephen J. Friedl) Newsgroups: comp.lang.c,comp.unix.wizards Subject: Re: command line options Message-ID: <517@vsi.UUCP> Date: 10 Apr 88 17:13:00 GMT References: <2414@zyx.UUCP> <8039@elsie.UUCP> <7628@brl-smoke.ARPA> <143@gsg.UUCP> <191@sdeggo.UUCP> Organization: V-Systems, Inc. -- Santa Ana, CA Lines: 24 Summary: removing files starting with `-' In article <191@sdeggo.UUCP>, dave@sdeggo.UUCP (David L. Smith) writes: > In article <7639@brl-smoke.ARPA>, gwyn@brl-smoke.ARPA (Doug Gwyn ) writes: > > > > Personally I don't keep files around with names starting with -. > > > Geez Doug, get up on the wrong side of the keyboard? I don't keep files > around that start with - either, but I have created them by mistake on > occasion. If we're not perfect we shouldn't be allowed to use Unix? I don't want to get into the discussion on command line arg processors, and this is not directed to either of the above net.readers. For those wondering a good way to deal with files beginning with a `-', prefix the filename with `./': $ rm ./-silly.file $ cat ./-silly.file This works for many of the cases where the command simply will not talk to a file starting with a dash. -- Steve Friedl V-Systems, Inc. "Yes, I'm jeff@unh's brother" friedl@vsi.com {backbones}!vsi.com!friedl attmail!vsi!friedl