Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)
On Sat, Sep 21, 2002 at 03:44:38PM +0200, Preben Randhol wrote:
> Colin Watson <cjwatson@debian.org> wrote on 21/09/2002 (11:51) :
> > Well, obviously if you're using #! /bin/sh then you don't need to
> > worry about what csh will make of it. Actually 'type' works in bash,
> > ash, and zsh, while 'command -v' works in bash and ash. Both are
> > extensions to the strict POSIX shell syntax, though.
>
> but if you run which then you have trhis script (on Debian at least)
> #!/bin/bash
> unalias -a
> unset -- "$@" &> /dev/null
> enable -n -- "$@" &> /dev/null
> type -p "$@"
>
> so this should also work in tcsh as long as bash is installed ?
I regard portable scripts as ones that work on systems other than
Debian. In particular, I need that condition in my work environment.
Also the script above has a bug that as far as I can tell can't be fixed
properly without a complete rewrite (#94507).
Cheers,
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: