Article View: gnu.misc.discuss
Article #62940Re: Hurd questions
From: Gerd Rausch
Date: Sat, 01 Apr 1995 00:00
Date: Sat, 01 Apr 1995 00:00
29 lines
1617 bytes
1617 bytes
> >>>>>> "SSS" == Skoglund <Stefan> writes: > >>>>>> "Martin" == Martin Michlmayr <tbm@tci002.uibk.ac.at> writes: > SSS> In article <3kpfba$k85@jak.cosy.sbg.ac.at> tbm@tci002.uibk.ac.at (Martin Michlmayr) writes: > > >>> 12) Will hurd give one a way to ask if you really meant > >>> to say 'rm *'? How about other common stupid mistakes > >>> a unix person might do? > > Martin> This would be easy to implement. A few lines of code. > > SSS> Not that easy. > SSS> Why ?? > SSS> You have to decide whom is gonna do this check. > SSS> rm or the shell ?? > SSS> the shell does the expansion and forward it to rm as parameters. > SSS> rm will find the list in argv. > SSS> How is rm gonna know argv is the result of a * substitution. > Have a look at zsh, they do exactly this (option RM_STAR_SILENT). Beside this it has many nice features and a line-editor even closer to emacs. It is even smaller than bash. I switched to it after using bash for a long time. (No offension against bash though, I really like it). -- Gerd Rausch, Von G�rschenstr. 7, 52066 Aachen/Germany voice: +49-241-54506, email: gerd@alf.gun.de
Technical Details
Message-ID:
<GERD.95Apr2000001@alf.gun.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<81696@sdcc12.ucsd.edu> <3kpfba$k85@jak.cosy.sbg.ac.at>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 1025b4,ef34758fb4e8c162 X-Google-Attributes: gid1025b4,public From: gerd@alf.gun.de (Gerd Rausch) Subject: Re: Hurd questions Date: 1995/04/01 Message-ID: <GERD.95Apr2000001@alf.gun.de> X-Deja-AN: 100673681 sender: news@genesis.westend.com (NewsOwner) references: <81696@sdcc12.ucsd.edu> <3kpfba$k85@jak.cosy.sbg.ac.at> organization: private newsgroups: gnu.misc.discuss