Sujet : Re: How many ways can you run a script?
De : suzyw0ng (at) *nospam* outlook.com (Woozy Song)
Groupes : comp.os.linux.miscDate : 02. Jun 2024, 02:34:09
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v3gi6h$31val$2@dont-email.me>
References : 1 2
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.18.2
Fritz Wuehler wrote:
Woozy Song <suzyw...@outlook.com> [WS]:
WS> I know these are not all equivalent and may have idiosyncracies.
Idiosyncracies is shell's middle name.
Use them or lose them, as they say...
$ ${0/-} myscript
(assuming that this is a login tty and your shell is bash)
That is an obscure one! What does the /- mean?