Article View: gnu.misc.discuss
Article #63003Re: Hurd questions
From: Jochen_Hayek
Date: Tue, 28 Mar 1995 20:02
Date: Tue, 28 Mar 1995 20:02
33 lines
2289 bytes
2289 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.
(For readers of such a book) I would like to recommend something like:
alias rm='rm --interactive'
BTW: I personally use the following alias for quite a long time:
alias rm='rm --force'
because I do not like questions of that kind:
Do you really want to ...
Yes, I want!
jh
--
<A HREF="http://info.acm.org/~Jochen_Hayek/homepage.html">Jochen `Roger' Hayek</A>
phone: +49(171)350.28.73,+49(30)261.28.73 / fax: +49(30)261.58.46
Jochen_Hayek@ACM.org *************** May I help you? **************
Technical Details
Message-ID:
<JH.95Mar28220229@JRHayek.Berlin.snafu.de>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!stern.fokus.gmd.de!ceres.fokus.gmd.de!zib-berlin.de!unlisys!news!jhReferences:
<81696@sdcc12.ucsd.edu> <3kpfba$k85@jak.cosy.sbg.ac.at> <SP2STES1.95Mar27110801@sol1.ida.his.se>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1025b4,ef34758fb4e8c162 X-Google-Attributes: gid1025b4,public X-Google-ArrivalTime: 1995-03-28 13:53:47 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!stern.fokus.gmd.de!ceres.fokus.gmd.de!zib-berlin.de!unlisys!news!jh From: Jochen_Hayek@ACM.org Newsgroups: gnu.misc.discuss Subject: Re: Hurd questions Date: 28 Mar 1995 20:02:29 GMT Organization: Jochen Hayek - Computer Education - Software For You - Et Cetera Lines: 33 Distribution: world Message-ID: <JH.95Mar28220229@JRHayek.Berlin.snafu.de> References: <81696@sdcc12.ucsd.edu> <3kpfba$k85@jak.cosy.sbg.ac.at> <SP2STES1.95Mar27110801@sol1.ida.his.se> Reply-To: Jochen_Hayek@ACM.org NNTP-Posting-Host: jrhayek.berlin.snafu.de In-reply-to: Stefan 'Stetson' Skoglund's message of 27 Mar 1995 11:08:01 +0200 X-mobile-phone: +49(171)350.28.73 X-phone: +49(30)261.28.73 X-fax: +49(30)261.58.46 X-location: Stresemannstr. 74/1417, D-10963 Berlin X-URL: http://info.acm.org/~Jochen_Hayek/homepage.html