Re: How many ways can you run a script?

Liste des GroupesRevenir à col misc 
Sujet : Re: How many ways can you run a script?
De : suzyw0ng (at) *nospam* outlook.com (Woozy Song)
Groupes : comp.os.linux.misc
Date : 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?

Date Sujet#  Auteur
30 May 24 * Re: How many ways can you run a script?4Fritz Wuehler
2 Jun 24 +* Re: How many ways can you run a script?2Woozy Song
2 Jun 24 i`- Re: How many ways can you run a script?1Nuno Silva
2 Jun 24 `- Re: How many ways can you run a script?1Fritz Wuehler

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal