Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #56480

Re: How many ways can you run a script?

From Fritz Wuehler <fritz@spamexpire-202405.rodent.frell.theremailer.net>
Subject Re: How many ways can you run a script?
MIME-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 8bit
References <v372oq462c@dont-email.me>
Message-ID <db9f509a5abb8d9eed3291ea7c7d27cb@msgid.frell.theremailer.net> (permalink)
Date Thu, 30 May 2024 03:14:31 +0200
Newsgroups comp.os.linux.misc
Path csiph.com!news.mixmin.net!news2.arglkargh.de!alphared!sewer!news.dizum.net!not-for-mail
Organization dizum.com - The Internet Problem Provider
X-Abuse abuse@dizum.com
Injection-Info sewer.dizum.com - 2001::1/128
Xref csiph.com comp.os.linux.misc:56480

Show key headers only | View raw


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)

Back to comp.os.linux.misc | Previous | NextNext in thread | Find similar | Unroll thread


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