Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #56501
| From | Fritz Wuehler <fritz@spamexpire-202406.rodent.frell.theremailer.net> |
|---|---|
| Subject | Re: How many ways can you run a script? |
| References | <v372oq462c@dont-email.me> <db9f509a5abb8d9eed3291ea7c7d27cb@msgid.frell.theremailer.net> <v3gi6h1val@dont-email.me> |
| Message-ID | <01c5bbc6ffa97ded366d2abf4651b36b@msgid.frell.theremailer.net> (permalink) |
| Date | 2024-06-02 13:57 +0200 |
| Newsgroups | comp.os.linux.misc |
| Organization | dizum.com - The Internet Problem Provider |
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
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: How many ways can you run a script? Fritz Wuehler <fritz@spamexpire-202405.rodent.frell.theremailer.net> - 2024-05-30 03:14 +0200
Re: How many ways can you run a script? Woozy Song <suzyw0ng@outlook.com> - 2024-06-02 09:34 +0800
Re: How many ways can you run a script? Nuno Silva <nunojsilva@invalid.invalid> - 2024-06-02 11:48 +0100
Re: How many ways can you run a script? Fritz Wuehler <fritz@spamexpire-202406.rodent.frell.theremailer.net> - 2024-06-02 13:57 +0200
csiph-web