Sujet : Re: How many ways can you run a script?
De : fritz (at) *nospam* spamexpire-202406.rodent.frell.theremailer.net (Fritz Wuehler)
Groupes : comp.os.linux.miscDate : 02. Jun 2024, 12:57:56
Autres entêtes
Organisation : dizum.com - The Internet Problem Provider
Message-ID : <01c5bbc6ffa97ded366d2abf4651b36b@msgid.frell.theremailer.net>
References : 1 2 3
Woozy Song <
suzyw...@outlook.com> [WS]:
WS> >$ ${0/-} myscript
WS> What does the /- mean?
Get rid of a possible (initial) "-" in $0:
$ echo $0; echo ${0/-}
-/bin/bash
/bin/bash