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 : fritz (at) *nospam* spamexpire-202406.rodent.frell.theremailer.net (Fritz Wuehler)
Groupes : comp.os.linux.misc
Date : 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


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