Sujet : Re: How many ways can you run a script?
De : fritz (at) *nospam* spamexpire-202405.rodent.frell.theremailer.net (Fritz Wuehler)
Groupes : comp.os.linux.miscDate : 30. May 2024, 02:14:31
Autres entêtes
Organisation : dizum.com - The Internet Problem Provider
Message-ID : <db9f509a5abb8d9eed3291ea7c7d27cb@msgid.frell.theremailer.net>
References : 1
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)