From: Fritz Wuehler 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: Message-ID: <01c5bbc6ffa97ded366d2abf4651b36b@msgid.frell.theremailer.net> Date: Sun, 02 Jun 2024 13:57:56 +0200 Newsgroups: comp.os.linux.misc Path: csiph.com!news.swapon.de!news.in-chemnitz.de!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:56501 Woozy Song [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