🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #62987

Re: Hurd questions

#62987
From: Stefan 'Stetson' Skoglund
Date: Mon, 27 Mar 1995 09:08
28 lines
2045 bytes
>>>>> "Martin" == Martin Michlmayr <tbm@tci002.uibk.ac.at> writes:
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.

Not that easy.
Why ??
You have to decide whom is gonna do this check.
rm or the shell ??
the shell does the expansion and forward it to rm as parameters.
rm will find the list in argv.
How is rm gonna know argv is the result of a * substitution.

--
---------------------------------------------------------------------
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.95Mar27110801@sol1.ida.his.se>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!swrinde!pipex!sunic!sunic.sunet.se!news.chalmers.se!ida.his.se!news.ida.his.se!sp2stes1
References: <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
X-Google-ArrivalTime: 1995-03-27 17:52:39 PST
Path: arc1-ca.pugleaf.net!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!swrinde!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: 27 Mar 1995 09:08:01 GMT
Organization: University of Skoevde, Skoevde Sweden
Lines: 28
Distribution: world
Message-ID: <SP2STES1.95Mar27110801@sol1.ida.his.se>
References: <81696@sdcc12.ucsd.edu> <3kpfba$k85@jak.cosy.sbg.ac.at>
Reply-To: Stefan 'Stetson' Skoglund <sp2stes1@ida.his.se>
NNTP-Posting-Host: sol1
In-reply-to: tbm@tci002.uibk.ac.at's message of 22 Mar 1995 15:22:18 GMT