Article View: gnu.misc.discuss
Article #62965Re: Hurd questions
From: Stefan 'Stetson' Skoglund
Date: Thu, 30 Mar 1995 06:43
Date: Thu, 30 Mar 1995 06:43
39 lines
2601 bytes
2601 bytes
>>>>> "Jochen" == Jochen Hayek <Jochen_Hayek@ACM.org> writes:
In article <JH.95Mar28220229@JRHayek.Berlin.snafu.de> Jochen_Hayek@ACM.org writes:
>>>>> "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.
I'm the one who wrote this answer :
the current semantics of rm -f is that rm shouldn't ask any questions
at all. rm should simply try to do its best.
This means that you wont get any questions then an catalog is
unwritable ie rm will simply fail in this catalog.
--
---------------------------------------------------------------------
Stefan 'Stetson' Skoglund I |
sp2stes1@ida.his.se I |
<http://www.his.se/ida/~sp2stes1/> I _____/0\_____
I ____________O(.)O___________
H�gskolan i Sk�vde, Sverige I I-+-I O I-+-I
I
I Viggen with two Rb04
---------------------------------------------------------------------
Technical Details
Message-ID:
<SP2STES1.95Mar30084330@sol1.ida.his.se>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!pipex!sunic!sunic.sunet.se!news.chalmers.se!ida.his.se!news.ida.his.se!sp2stes1References:
<81696@sdcc12.ucsd.edu> <3kpfba$k85@jak.cosy.sbg.ac.at> <SP2STES1.95Mar27110801@sol1.ida.his.se> <JH.95Mar28220229@JRHayek.Berlin.snafu.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 1025b4,ef34758fb4e8c162 X-Google-Attributes: gid1025b4,public X-Google-ArrivalTime: 1995-03-29 22:43:30 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!pipex!sunic!sunic.sunet.se!news.chalmers.se!ida.his.se!news.ida.his.se!sp2stes1 From: Stefan 'Stetson' Skoglund <sp2stes1@ida.his.se> Newsgroups: gnu.misc.discuss Subject: Re: Hurd questions Date: 30 Mar 1995 06:43:30 GMT Organization: University of Skoevde, Skoevde Sweden Lines: 39 Distribution: world Message-ID: <SP2STES1.95Mar30084330@sol1.ida.his.se> References: <81696@sdcc12.ucsd.edu> <3kpfba$k85@jak.cosy.sbg.ac.at> <SP2STES1.95Mar27110801@sol1.ida.his.se> <JH.95Mar28220229@JRHayek.Berlin.snafu.de> Reply-To: Stefan 'Stetson' Skoglund <sp2stes1@ida.his.se> NNTP-Posting-Host: sol1 In-reply-to: Jochen_Hayek@ACM.org's message of 28 Mar 1995 20:02:29 GMT