X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: disable bash builtin(s) Date: 25 Jan 2002 14:23:42 GMT Organization: Aachen University of Technology (RWTH) Lines: 34 Message-ID: References: <20020123124043 DOT A17742 AT kendall DOT sfbr DOT org> <20020124114332 DOT B10567 AT kendall DOT sfbr DOT org> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1011968622 29569 137.226.32.75 (25 Jan 2002 14:23:42 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 25 Jan 2002 14:23:42 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com JT Williams wrote: > -: > Can I selectively disable bash builtin commands? > -: > -: According to the Bash manual, there's a special command to do that: > -: "enable -n". > My initial message was misworded; sorry about that. I knew about > the enable command; what I was looking for is a way to disable a bash > *keyword* (not a builtin). The only way I know to do this is to quote > the keyword, e.g., type "select" or 'select' (with quotes) or even \select > (with backslash) to force a path search for a `select' program or script. That's the only kind of method existing, I think. Reserved words are sacrosanct to the shell. > Hackers can live with this, even take a perverse delight in it, but Joe > L User isn't known for tolerating such quirks. These aren't exactly "quirks", this is what having a programming language of any sort (which Bourne shell definitely is) implies: some words are reserved by the language, so you can't use them freely for your own. The only way this can ever trouble the user would be if some program was installed under the name 'select' --- which is quite obviously a rather bad idea, for exactly this reason. > I suppose I could build a custom bash for this particular > application.... ... or give that application a less troublesome name. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.