Bash script convert for mksh?
#3
RE: Bash script convert for mksh?
The -f option to export is what caused the whole Shellshock fiasco (if you remember). It's a misfeature.

The functionality you are looking for is available in ksh shells in the builtin "whence -a". It is aliased by default to "type". It is also faster, since it doesn't invoke an external command.

Personaliris O2 Indigo2 R10000/IMPACT Indigo2 R10000/IMPACT Indigo2 Indy   (past: 4D70GT)
robespierre
refector peritus

Trade Count: (0)
Posts: 640
Threads: 3
Joined: Nov 2020
Location: Massholium
Find Reply
01-06-2021, 02:27 AM


Messages In This Thread
Bash script convert for mksh? - by stormy - 01-04-2021, 08:59 PM
RE: Bash script convert for mksh? - by Raion - 01-04-2021, 09:51 PM
RE: Bash script convert for mksh? - by robespierre - 01-06-2021, 02:27 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)