Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

19 May, 2024: Line wrapping has been changed to be more consistent with Usenet standards.
 If you find that it is broken please let me know here rocksolid.nodes.help


devel / comp.unix.shell / [ANN] KornShell 93u+m/1.0.0

SubjectAuthor
* [ANN] KornShell 93u+m/1.0.0Martijn Dekker
+* Re: [ANN] KornShell 93u+m/1.0.0muttley
|+* Re: [ANN] KornShell 93u+m/1.0.0Auric__
||`- Re: [ANN] KornShell 93u+m/1.0.0Martijn Dekker
|+* Re: [ANN] KornShell 93u+m/1.0.0Aragorn
||`* Re: [ANN] KornShell 93u+m/1.0.0Scott Lurndal
|| +* Re: [ANN] KornShell 93u+m/1.0.0Eli the Bearded
|| |+- Re: [ANN] KornShell 93u+m/1.0.0Martijn Dekker
|| |`* Re: [ANN] KornShell 93u+m/1.0.0muttley
|| | +* Re: [ANN] KornShell 93u+m/1.0.0Scott Lurndal
|| | |`* Re: [ANN] KornShell 93u+m/1.0.0muttley
|| | | `* Re: [ANN] KornShell 93u+m/1.0.0Scott Lurndal
|| | |  `* Re: [ANN] KornShell 93u+m/1.0.0muttley
|| | |   `* Re: [ANN] KornShell 93u+m/1.0.0Scott Lurndal
|| | |    `* Re: [ANN] KornShell 93u+m/1.0.0muttley
|| | |     +* Re: [ANN] KornShell 93u+m/1.0.0Dan Espen
|| | |     |+* Re: [ANN] KornShell 93u+m/1.0.0Ed Morton
|| | |     ||`* Prevalence of #! (was: [ANN] KornShell 93u+m/1.0.0)Geoff Clare
|| | |     || +* Re: Prevalence of #!John McCue
|| | |     || |`* Re: Prevalence of #!Keith Thompson
|| | |     || | +* Re: Prevalence of #!Lew Pitcher
|| | |     || | |`* Re: Prevalence of #!Eli the Bearded
|| | |     || | | `- Re: Prevalence of #!Keith Thompson
|| | |     || | +- Re: Prevalence of #!Kaz Kylheku
|| | |     || | `* Re: Prevalence of #!Geoff Clare
|| | |     || |  `- Re: Prevalence of #!Keith Thompson
|| | |     || `- Re: Prevalence of #!Janis Papanagnou
|| | |     |`* Re: [ANN] KornShell 93u+m/1.0.0Muttley
|| | |     | `- Re: [ANN] KornShell 93u+m/1.0.0Dan Espen
|| | |     `* Re: [ANN] KornShell 93u+m/1.0.0Scott Lurndal
|| | |      +* Re: [ANN] KornShell 93u+m/1.0.0Keith Thompson
|| | |      |`* Re: [ANN] KornShell 93u+m/1.0.0Scott Lurndal
|| | |      | `* Re: [ANN] KornShell 93u+m/1.0.0Keith Thompson
|| | |      |  `* Re: [ANN] KornShell 93u+m/1.0.0Kaz Kylheku
|| | |      |   `* Re: [ANN] KornShell 93u+m/1.0.0Keith Thompson
|| | |      |    `- Re: [ANN] KornShell 93u+m/1.0.0Kaz Kylheku
|| | |      `* Re: [ANN] KornShell 93u+m/1.0.0Muttley
|| | |       +- Re: [ANN] KornShell 93u+m/1.0.0Janis Papanagnou
|| | |       +* Re: [ANN] KornShell 93u+m/1.0.0Richard Kettlewell
|| | |       |+* Re: [ANN] KornShell 93u+m/1.0.0Muttley
|| | |       ||+- Re: [ANN] KornShell 93u+m/1.0.0Christian Weisgerber
|| | |       ||`* Re: [ANN] KornShell 93u+m/1.0.0Gary R. Schmidt
|| | |       || `* Re: [ANN] KornShell 93u+m/1.0.0Muttley
|| | |       ||  `* Re: [ANN] KornShell 93u+m/1.0.0Kaz Kylheku
|| | |       ||   +- Re: [ANN] KornShell 93u+m/1.0.0Muttley
|| | |       ||   `- Re: [ANN] KornShell 93u+m/1.0.0Gary R. Schmidt
|| | |       |`* Re: [ANN] KornShell 93u+m/1.0.0David W. Hodgins
|| | |       | +- Re: [ANN] KornShell 93u+m/1.0.0Scott Lurndal
|| | |       | `* Re: [ANN] KornShell 93u+m/1.0.0Keith Thompson
|| | |       |  `* Re: [ANN] KornShell 93u+m/1.0.0David W. Hodgins
|| | |       |   `* Re: [ANN] KornShell 93u+m/1.0.0gerg
|| | |       |    `- Re: [ANN] KornShell 93u+m/1.0.0David W. Hodgins
|| | |       +- Re: [ANN] KornShell 93u+m/1.0.0Ed Morton
|| | |       +* Re: [ANN] KornShell 93u+m/1.0.0Dan Espen
|| | |       |+* Re: [ANN] KornShell 93u+m/1.0.0Kenny McCormack
|| | |       ||`- Re: [ANN] KornShell 93u+m/1.0.0Dan Espen
|| | |       |`* Re: [ANN] KornShell 93u+m/1.0.0Muttley
|| | |       | `* Re: [ANN] KornShell 93u+m/1.0.0Dan Espen
|| | |       |  `* Re: [ANN] KornShell 93u+m/1.0.0Muttley
|| | |       |   +* Re: [ANN] KornShell 93u+m/1.0.0Dan Espen
|| | |       |   |`- Re: [ANN] KornShell 93u+m/1.0.0Muttley
|| | |       |   `- Re: [ANN] KornShell 93u+m/1.0.0Keith Thompson
|| | |       +* Re: [ANN] KornShell 93u+m/1.0.0Scott Lurndal
|| | |       |`* Re: [ANN] KornShell 93u+m/1.0.0Muttley
|| | |       | `* Re: [ANN] KornShell 93u+m/1.0.0Scott Lurndal
|| | |       |  `- Re: [ANN] KornShell 93u+m/1.0.0Kaz Kylheku
|| | |       `- Re: [ANN] KornShell 93u+m/1.0.0Keith Thompson
|| | +* Re: [ANN] KornShell 93u+m/1.0.0Eli the Bearded
|| | |+- Re: [ANN] KornShell 93u+m/1.0.0Keith Thompson
|| | |+- Re: [ANN] KornShell 93u+m/1.0.0Aragorn
|| | |+* Re: [ANN] KornShell 93u+m/1.0.0John McCue
|| | ||`* Re: [ANN] KornShell 93u+m/1.0.0Eli the Bearded
|| | || `- Re: [ANN] KornShell 93u+m/1.0.0John McCue
|| | |`* Re: [ANN] KornShell 93u+m/1.0.0Anssi Saari
|| | | +* Re: [ANN] KornShell 93u+m/1.0.0Aragorn
|| | | |`* Re: [ANN] KornShell 93u+m/1.0.0Anssi Saari
|| | | | +- Re: [ANN] KornShell 93u+m/1.0.0Aragorn
|| | | | `- Re: [ANN] KornShell 93u+m/1.0.0John McCue
|| | | `- Re: [ANN] KornShell 93u+m/1.0.0Eli the Bearded
|| | `* Re: [ANN] KornShell 93u+m/1.0.0Gary R. Schmidt
|| |  `* Re: [ANN] KornShell 93u+m/1.0.0John D Groenveld
|| |   `- Re: [ANN] KornShell 93u+m/1.0.0Marco Scholz
|| `* Re: [ANN] KornShell 93u+m/1.0.0Christian Weisgerber
||  `- tcsh (Was: [ANN] KornShell 93u+m/1.0.0)Kenny McCormack
|+* Re: [ANN] KornShell 93u+m/1.0.0John McCue
||+- Re: [ANN] KornShell 93u+m/1.0.0Janis Papanagnou
||`* Re: [ANN] KornShell 93u+m/1.0.0muttley
|| `- Re: [ANN] KornShell 93u+m/1.0.0John McCue
|+- Re: [ANN] KornShell 93u+m/1.0.0Martijn Dekker
|+* Please respect foreign-language usenet hierarchies (was: [ANN] KornShell 93u+m/1Helmut Waitzmann
||`* Re: Please respect foreign-language usenet hierarchies (was: [ANN] KornShell 93umuttley
|| `* Re: Please respect foreign-language usenet hierarchiesHelmut Waitzmann
||  `- Re: Please respect foreign-language usenet hierarchiesHelmut Waitzmann
|`- [OT] Please respect foreign-language usenet hierarchies (was: [ANN] KornShell 93Helmut Waitzmann
`* Re: [ANN] KornShell 93u+m/1.0.0Janis Papanagnou
 `* Re: [ANN] KornShell 93u+m/1.0.0Martijn Dekker
  `- Re: [ANN] KornShell 93u+m/1.0.0Janis Papanagnou

Pages:1234
Re: [ANN] KornShell 93u+m/1.0.0

<20220806002532.996@kylheku.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5517&group=comp.unix.shell#5517

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: 480-992-1380@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell,comp.unix.programmer
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 6 Aug 2022 07:42:29 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 120
Message-ID: <20220806002532.996@kylheku.com>
References: <jkqs27F60pbU1@mid.individual.net>
<tcbp2h$1217$1@gioia.aioe.org> <20220802203954.4448bda7@nx-74205>
<77fGK.128008$El2.510@fx45.iad> <eli$2208022010@qaz.wtf>
<tcegjg$3rp$1@gioia.aioe.org> <5fAGK.541056$vAW9.223342@fx10.iad>
<tch2bs$1cnl$1@gioia.aioe.org> <I6VGK.617916$J0r9.380353@fx11.iad>
<tch93j$ahg$1@gioia.aioe.org> <qZVGK.794063$JVi.446488@fx17.iad>
<tchbj4$1b6e$1@gioia.aioe.org> <txYGK.856348$X_i.80725@fx18.iad>
<87v8r7tisx.fsf@nosuchdomain.example.com>
<FTaHK.628816$J0r9.382465@fx11.iad>
<87r11utvi3.fsf@nosuchdomain.example.com>
Injection-Date: Sat, 6 Aug 2022 07:42:29 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="23ec4badbe7aa14cbce78d59677cdd15";
logging-data="3901652"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/c39pKw+oNhfENjowXX4qvFd17uTHAkTM="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:SCyardLEjEZPQXfzO8YwynOC03g=
 by: Kaz Kylheku - Sat, 6 Aug 2022 07:42 UTC

On 2022-08-05, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
> scott@slp53.sl.home (Scott Lurndal) writes:
>> Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>>>scott@slp53.sl.home (Scott Lurndal) writes:
>>>> muttley@dastardlyhq.com writes:
>>>>>On Thu, 04 Aug 2022 20:28:06 GMT
>>>>>scott@slp53.sl.home (Scott Lurndal) wrote:
>>>[...]
>>>>>>If there's no she-bang, then the script can still be run by
>>>>>>explicitly invoking the appropriate shell (bash /path/to/bash/script).
>>>>>
>>>>>It'll be invoked directly anyway by /bin/sh if its +x. I'd have thought in
>>>>>you three plus decades of experience would have discovered that by now.
>>>>
>>>> Yes, that experience tells me that don't want to rely on that behavior,
>>>> because it doesn't necessarily invoke /bin/sh, it invokes $SHELL.
>>>> And if the shell script being invoked isn't in $SHELL dialect, undefined
>>>> behavior will ensue.
>>>>
>>>> That's why we always either use she-bang, or use the invoke the script
>>>> using the target shell explicitly.
>>>
>>>In a quick experiment, it seems that such a script is invoked either by
>>>current shell or by /bin/sh, depending on which shell I invoke it from.
>>>I don't see any cases where it depends on $SHELL.
>>>
>>>The behavior may vary on different systems -- which is why I also avoid
>>>relying on it.
>>
>> Open Group says this (under execle):
>>
>> There are two distinct ways in which the contents of the process image
>> file may cause the execution to fail, distinguished by the setting of
>> errno to either [ENOEXEC] or [EINVAL] (see the ERRORS section). In the
>> cases where the other members of the exec family of functions would fail
>> and set errno to [ENOEXEC], the execlp() and execvp() functions shall
>> execute a command interpreter and the environment of the executed command
>> shall be as if the process invoked the sh utility using execl() as follows:
>>
>> execl(<shell path>, arg0, file, arg1, ..., (char *)0);
>>
>> where <shell path> is an unspecified pathname for the sh utility, file
>> is the process image file, and for execvp(), where arg0, arg1, and
>> so on correspond to the values passed to execvp() in argv[0], argv[1], and so on.
>>
>> I've worked with C library implementations that derive <shell path> from $SHELL
>> if set.
>
> And for at least some shells, executing a file doesn't just invoke one
> of the exec*() functions. When I use execvp() in a C program to execute
> a script with no "#!" line, it uses /bin/sh. When I run the same script
> from bash, it uses the currently running bash, even when the current
> bash is neither $SHELL nor /bin/bash.

What? Only sourcing a script should use the current shell; sourcing
isn't execution.

By "run from bash" are you referring to passing the script as a command
line argument as in

bash ./script

?

That bash instance will of course read and run the script. But if you
give bash a command via standard input:

bash$ ./script

that must run it in a child process..

When I do this:

$ echo ./testscript | strace -o log bash

The strace log has:

read(0, ".", 1) = 1
read(0, "/", 1) = 1
read(0, "t", 1) = 1
read(0, "e", 1) = 1
read(0, "s", 1) = 1
read(0, "t", 1) = 1
read(0, "s", 1) = 1
read(0, "c", 1) = 1
read(0, "r", 1) = 1
read(0, "i", 1) = 1
read(0, "p", 1) = 1
read(0, "t", 1) = 1
read(0, "\n", 1) = 1
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7f8aae8) = 1407
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1407, si_uid=500, si_status=0, si_utime=0, si_stime=0} ---

Bash reads the command and spawns a process.

Moreover, if we trace this again with -f to see what the child is doing:

1670 execve("./testscript", ["./testscript"], 0x1e00500 /* 24 vars */) = -1 ENOEXEC (Exec format error)
1670 openat(AT_FDCWD, "./testscript", O_RDONLY|O_LARGEFILE) = 3
1670 read(3, "FOO=abc\ncd /\n", 128) = 13
1670 close(3) = 0

See: execve happens.

It cannot be that bash would read a command and just run it in the
current shell, if that command isn't a built-in or user-defined
function.

It also cannot be that bash would just fork a child process, and
then interpret the script without exec; a script without hash bang
has to be given the proper treatment through exec to choose
the interpreter in a consistent way.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal

Re: [ANN] KornShell 93u+m/1.0.0

<tcl92t$1619$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5518&group=comp.unix.shell#5518

  copy link   Newsgroups: comp.unix.shell de.comp.os.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!aioe.org!BKzeqmo2UYxb4eR2zKm0zw.user.46.165.242.75.POSTED!not-for-mail
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.shell,de.comp.os.unix.shell,comp.unix.programmer
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 6 Aug 2022 08:34:37 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <tcl92t$1619$1@gioia.aioe.org>
References: <jkqs27F60pbU1@mid.individual.net> <tcbp2h$1217$1@gioia.aioe.org>
<20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad>
<eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org>
<5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org>
<I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org>
<qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org>
<tchccq$2tfg1$1@dont-email.me>
Injection-Info: gioia.aioe.org; logging-data="38953"; posting-host="BKzeqmo2UYxb4eR2zKm0zw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Muttley@dastardlyhq.com - Sat, 6 Aug 2022 08:34 UTC

On Thu, 04 Aug 2022 17:06:33 -0400
Dan Espen <dan1espen@gmail.com> wrote:
>muttley@dastardlyhq.com writes:
>
>> On Thu, 04 Aug 2022 20:28:06 GMT
>> scott@slp53.sl.home (Scott Lurndal) wrote:
>>>muttley@dastardlyhq.com writes:
>>>>Should. How often do you see it in practice?
>>>>
>>>
>>>100%. As noted in other posts, we use a number of different interactive
>>>shells, and a number of scripting languages (tcsh, ksh, bash, perl, python,
>>>tcl, et alia). And that's been true for every POE I've worked in for
>>>the last three plus decades (system or processor OEMs primarily).
>>
>> Don't believe you. I've seen more scripts than I can count that didn't
>> have the hash bang at the start. No idea what a she-bang is. Sounds like
>> a service for sailors in a port.
>
>Well, where I worked, every shell script we shipped to customers had
>a hash bang. Feel free to not believe me too.

I wasn't talking about commercially shipped scripts, I was talking about
internal ones as I'm sure you understood.

Re: [ANN] KornShell 93u+m/1.0.0

<tcl95o$16up$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5519&group=comp.unix.shell#5519

  copy link   Newsgroups: comp.unix.shell de.comp.os.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!aioe.org!BKzeqmo2UYxb4eR2zKm0zw.user.46.165.242.75.POSTED!not-for-mail
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.shell,de.comp.os.unix.shell,comp.unix.programmer
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 6 Aug 2022 08:36:09 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <tcl95o$16up$1@gioia.aioe.org>
References: <jkqs27F60pbU1@mid.individual.net> <tcbp2h$1217$1@gioia.aioe.org> <20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad> <eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org> <5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org> <I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org> <qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org> <txYGK.856348$X_i.80725@fx18.iad>
Injection-Info: gioia.aioe.org; logging-data="39897"; posting-host="BKzeqmo2UYxb4eR2zKm0zw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Muttley@dastardlyhq.com - Sat, 6 Aug 2022 08:36 UTC

On Thu, 04 Aug 2022 23:23:05 GMT
scott@slp53.sl.home (Scott Lurndal) wrote:
>That's why we always either use she-bang, or use the invoke the script

Wtf is "she" for? Its either called hash or pound depending on what side of
the atlantic you're on. Its never called "she" and I've never heard anyone
anywhere ever refer to it like this.

Re: Prevalence of #!

<tclcg8$3ovdd$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5520&group=comp.unix.shell#5520

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell
Subject: Re: Prevalence of #!
Date: Sat, 6 Aug 2022 11:32:56 +0200
Organization: A noiseless patient Spider
Lines: 78
Message-ID: <tclcg8$3ovdd$1@dont-email.me>
References: <jkqs27F60pbU1@mid.individual.net> <tcbp2h$1217$1@gioia.aioe.org>
<20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad>
<eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org>
<5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org>
<I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org>
<qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org>
<tchccq$2tfg1$1@dont-email.me> <tchi1d$2u2ak$1@dont-email.me>
<o8hvri-ram.ln1@ID-313840.user.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 6 Aug 2022 09:32:56 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="b19da664528a2771a49443dfd44cc4ce";
logging-data="3964333"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19q1pBGUrMJxIAu2qwHUN+Q"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:fC0BOj5oLeR2na76MS9ONUBLRGs=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <o8hvri-ram.ln1@ID-313840.user.individual.net>
 by: Janis Papanagnou - Sat, 6 Aug 2022 09:32 UTC

On 05.08.2022 15:07, Geoff Clare wrote:
> Ed Morton wrote:
>
>> On 8/4/2022 4:06 PM, Dan Espen wrote:
>>> muttley@dastardlyhq.com writes:
>>>
>>>> On Thu, 04 Aug 2022 20:28:06 GMT
>>>> scott@slp53.sl.home (Scott Lurndal) wrote:
>>>>> muttley@dastardlyhq.com writes:
>>>>>> Should. How often do you see it in practice?
>>>>>>
>>>>>
>>>>> 100%. As noted in other posts, we use a number of different interactive
>>>>> shells, and a number of scripting languages (tcsh, ksh, bash, perl, python,
>>>>> tcl, et alia). And that's been true for every POE I've worked in for
>>>>> the last three plus decades (system or processor OEMs primarily).
>>>>
>>>> Don't believe you. I've seen more scripts than I can count that didn't
>>>> have the hash bang at the start. No idea what a she-bang is. Sounds like
>>>> a service for sailors in a port.
>>>
>>> Well, where I worked, every shell script we shipped to customers had
>>> a hash bang. Feel free to not believe me too.
>>>
>>
>> Likewise, 100% of the shell scripts shipped to customers or used as a
>> tool has a shebang.
>
> Where I work 100% of (hundreds of) shell scripts shipped to customers
> do not have a #! line. That's because they are required to conform to
> POSIX, and POSIX says that if the first line starts with #! the results
> are unspecified.

In the past we rarely shipped _scripts_ to customers, rather mostly
large program systems or single binaries or complete runtime packages.
Anyway, an executable script has to be started with the appropriate
(well defined) interpreter, so an explicit shebang definition would
be the cleanest way, IMO. (Personally and privately I explicitly use
the interpreter on the script file in most cases.) But what we (or
our company) ships is beyond a generally valid statement. If I inspect
the PATH on my Linux system and the script files located there I find
round about 1000 scripts, all with a #! line and with the interpreters
depicted in the list

324 #!/bin/sh
152 #!/usr/bin/perl
132 #!/usr/bin/perl -w
92 #!/usr/bin/python
72 #! /bin/sh
56 #!/bin/bash
37 #! /usr/bin/perl
31 #!/bin/sh -e
24 #! /usr/bin/python
15 #! /usr/bin/env
13 #!/usr/bin/env python
11 #! /bin/bash
6 #!/bin/sh -
5 #!/usr/bin/ruby1.8
3 #!/bin/bash -e
3 #! /usr/bin/python2.7
2 #!/usr/bin/wish
2 #!/usr/bin/env ruby
1 #!/usr/bin/python2.7
1 #!/usr/bin/python -Es
1 #!/usr/bin/perl -wl
1 #!/usr/bin/perl --
1 #!/usr/bin/guile -s
1 #!/usr/bin/env perl
1 #!/usr/bin/env nickle
1 #!/usr/bin/env bash
1 #!/bin/sh -f
1 #!/bin/sh -eu
1 #!/bin/mksh
1 #! /usr/bin/python3

Janis

Re: [ANN] KornShell 93u+m/1.0.0

<tclct0$3p2an$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5521&group=comp.unix.shell#5521

  copy link   Newsgroups: comp.unix.shell de.comp.os.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell,de.comp.os.unix.shell,comp.unix.programmer
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 6 Aug 2022 11:39:44 +0200
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <tclct0$3p2an$1@dont-email.me>
References: <jkqs27F60pbU1@mid.individual.net> <tcbp2h$1217$1@gioia.aioe.org>
<20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad>
<eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org>
<5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org>
<I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org>
<qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org>
<txYGK.856348$X_i.80725@fx18.iad> <tcl95o$16up$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 6 Aug 2022 09:39:44 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="b19da664528a2771a49443dfd44cc4ce";
logging-data="3967319"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vpUrETKRnJdKFAMhKIeHK"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:Z0ziolLoGVFyC3hANl27/8sslsM=
In-Reply-To: <tcl95o$16up$1@gioia.aioe.org>
 by: Janis Papanagnou - Sat, 6 Aug 2022 09:39 UTC

On 06.08.2022 10:36, Muttley@dastardlyhq.com wrote:
> On Thu, 04 Aug 2022 23:23:05 GMT
> scott@slp53.sl.home (Scott Lurndal) wrote:
>> That's why we always either use she-bang, or use the invoke the script
>
> Wtf is "she" for? Its either called hash or pound depending on what side of
> the atlantic you're on. Its never called "she" and I've never heard anyone
> anywhere ever refer to it like this.

You find hints here: https://www.in-ulm.de/~mascheck/various/shebang/

Janis

Re: [ANN] KornShell 93u+m/1.0.0

<87o7wxsj6b.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5522&group=comp.unix.shell#5522

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!aioe.org!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.unix.shell,comp.unix.programmer
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 06 Aug 2022 12:30:52 +0100
Organization: terraraq NNTP server
Message-ID: <87o7wxsj6b.fsf@LkoBDZeT.terraraq.uk>
References: <jkqs27F60pbU1@mid.individual.net> <tcbp2h$1217$1@gioia.aioe.org>
<20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad>
<eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org>
<5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org>
<I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org>
<qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org>
<txYGK.856348$X_i.80725@fx18.iad> <tcl95o$16up$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="116666"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:rz0GgTCD74B5jw3LvhXbI78DSg4=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Sat, 6 Aug 2022 11:30 UTC

Muttley@dastardlyhq.com writes:
> scott@slp53.sl.home (Scott Lurndal) wrote:
>>That's why we always either use she-bang, or use the invoke the script
>
> Wtf is "she" for? Its either called hash or pound depending on what side of
> the atlantic you're on. Its never called "she" and I've never heard anyone
> anywhere ever refer to it like this.

People have been calling it that for ages. I’m not a fan but it’s not
new.

--
https://www.greenend.org.uk/rjk/

Re: [ANN] KornShell 93u+m/1.0.0

<tclla4$3r1lp$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5523&group=comp.unix.shell#5523

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mortonspam@gmail.com (Ed Morton)
Newsgroups: comp.unix.shell
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 6 Aug 2022 07:03:16 -0500
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <tclla4$3r1lp$1@dont-email.me>
References: <jkqs27F60pbU1@mid.individual.net> <tcbp2h$1217$1@gioia.aioe.org>
<20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad>
<eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org>
<5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org>
<I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org>
<qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org>
<txYGK.856348$X_i.80725@fx18.iad> <tcl95o$16up$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 6 Aug 2022 12:03:16 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="380db65ea0ebda46681cbe1b22313e93";
logging-data="4032185"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ytJpMdp4n0iYh/063YLah"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.1.0
Cancel-Lock: sha1:VXYFSWEDTnVG8y/Q7fdlFLfROPw=
X-Antivirus: Avast (VPS 220806-0, 8/5/2022), Outbound message
X-Antivirus-Status: Clean
In-Reply-To: <tcl95o$16up$1@gioia.aioe.org>
Content-Language: en-US
 by: Ed Morton - Sat, 6 Aug 2022 12:03 UTC

On 8/6/2022 3:36 AM, Muttley@dastardlyhq.com wrote:
> On Thu, 04 Aug 2022 23:23:05 GMT
> scott@slp53.sl.home (Scott Lurndal) wrote:
>> That's why we always either use she-bang, or use the invoke the script
>
> Wtf is "she" for? Its either called hash or pound depending on what side of
> the atlantic you're on. Its never called "she" and I've never heard anyone
> anywhere ever refer to it like this.
>
>

Not sure I've ever heard it called anything other than a shebang prior
to this discussion but anyway, I already provided you a reference for it
at https://en.wikipedia.org/wiki/Shebang_(Unix) and see also
https://unix.stackexchange.com/questions/149045/why-is-shebang-called-shebang
for suggestions that it's derived from either of these:

haSH BANG
SHarp BANG

given that # is sometimes referred to as a hash or sharp character and !
is sometimes referred to as a bang character.

Regards,

Ed.

Re: [ANN] KornShell 93u+m/1.0.0

<tcllpi$3r6oa$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5524&group=comp.unix.shell#5524

  copy link   Newsgroups: comp.unix.shell de.comp.os.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dan1espen@gmail.com (Dan Espen)
Newsgroups: comp.unix.shell,de.comp.os.unix.shell,comp.unix.programmer
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 06 Aug 2022 08:11:29 -0400
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <tcllpi$3r6oa$1@dont-email.me>
References: <jkqs27F60pbU1@mid.individual.net> <tcbp2h$1217$1@gioia.aioe.org>
<20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad>
<eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org>
<5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org>
<I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org>
<qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org>
<tchccq$2tfg1$1@dont-email.me> <tcl92t$1619$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="39ede03c87ab6fa0bf42b12d5a4aa4c7";
logging-data="4037386"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/8FKtdBJz2iY2LZBlgSAR2lRXRpy/QDGg="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:kQapPdIi37EcaKneiwE4BmKj/+s=
 by: Dan Espen - Sat, 6 Aug 2022 12:11 UTC

Muttley@dastardlyhq.com writes:

> On Thu, 04 Aug 2022 17:06:33 -0400
> Dan Espen <dan1espen@gmail.com> wrote:
>>muttley@dastardlyhq.com writes:
>>
>>> On Thu, 04 Aug 2022 20:28:06 GMT
>>> scott@slp53.sl.home (Scott Lurndal) wrote:
>>>>muttley@dastardlyhq.com writes:
>>>>>Should. How often do you see it in practice?
>>>>>
>>>>
>>>>100%. As noted in other posts, we use a number of different interactive
>>>>shells, and a number of scripting languages (tcsh, ksh, bash, perl, python,
>>>>tcl, et alia). And that's been true for every POE I've worked in for
>>>>the last three plus decades (system or processor OEMs primarily).
>>>
>>> Don't believe you. I've seen more scripts than I can count that didn't
>>> have the hash bang at the start. No idea what a she-bang is. Sounds like
>>> a service for sailors in a port.
>>
>>Well, where I worked, every shell script we shipped to customers had
>>a hash bang. Feel free to not believe me too.
>
> I wasn't talking about commercially shipped scripts, I was talking about
> internal ones as I'm sure you understood.

No, no way was that even implied.

Not really interested in scripts thrown together by a novice.
For what it's worth all my home grown temporary use scripts have a hash
bang too.

--
Dan Espen

Re: [ANN] KornShell 93u+m/1.0.0

<tclltg$3r6oa$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5525&group=comp.unix.shell#5525

  copy link   Newsgroups: comp.unix.shell de.comp.os.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dan1espen@gmail.com (Dan Espen)
Newsgroups: comp.unix.shell,de.comp.os.unix.shell,comp.unix.programmer
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 06 Aug 2022 08:13:34 -0400
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <tclltg$3r6oa$2@dont-email.me>
References: <jkqs27F60pbU1@mid.individual.net> <tcbp2h$1217$1@gioia.aioe.org>
<20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad>
<eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org>
<5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org>
<I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org>
<qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org>
<txYGK.856348$X_i.80725@fx18.iad> <tcl95o$16up$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="39ede03c87ab6fa0bf42b12d5a4aa4c7";
logging-data="4037386"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/l4nitmNnKAWqyf/33JaxejOyuiRdX1fY="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:Ukrj4u45Cvkt6g2yJaRLdcVALHA=
 by: Dan Espen - Sat, 6 Aug 2022 12:13 UTC

Muttley@dastardlyhq.com writes:

> On Thu, 04 Aug 2022 23:23:05 GMT
> scott@slp53.sl.home (Scott Lurndal) wrote:
>>That's why we always either use she-bang, or use the invoke the script
>
> Wtf is "she" for? Its either called hash or pound depending on what side of
> the atlantic you're on. Its never called "she" and I've never heard anyone
> anywhere ever refer to it like this.

Here, have a look:

https://en.wikipedia.org/wiki/Shebang_(Unix)

Someone seems to be batting 1000.

--
Dan Espen

Re: [ANN] KornShell 93u+m/1.0.0

<tclmu9$3qdmr$1@news.xmission.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5526&group=comp.unix.shell#5526

  copy link   Newsgroups: comp.unix.shell de.comp.os.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell,de.comp.os.unix.shell,comp.unix.programmer
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 6 Aug 2022 12:31:06 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <tclmu9$3qdmr$1@news.xmission.com>
References: <jkqs27F60pbU1@mid.individual.net> <txYGK.856348$X_i.80725@fx18.iad> <tcl95o$16up$1@gioia.aioe.org> <tclltg$3r6oa$2@dont-email.me>
Injection-Date: Sat, 6 Aug 2022 12:31:06 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="4011739"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Sat, 6 Aug 2022 12:31 UTC

In article <tclltg$3r6oa$2@dont-email.me>,
Dan Espen <dan1espen@gmail.com> wrote:
....
>Someone seems to be batting 1000.

Hint: It's not you.

--
Atheism:
It's like being the only sober person in the car, and nobody will let you drive.

Re: [ANN] KornShell 93u+m/1.0.0

<tclpng$3s9ai$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5527&group=comp.unix.shell#5527

  copy link   Newsgroups: comp.unix.shell de.comp.os.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dan1espen@gmail.com (Dan Espen)
Newsgroups: comp.unix.shell,de.comp.os.unix.shell,comp.unix.programmer
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 06 Aug 2022 09:18:39 -0400
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <tclpng$3s9ai$1@dont-email.me>
References: <jkqs27F60pbU1@mid.individual.net>
<txYGK.856348$X_i.80725@fx18.iad> <tcl95o$16up$1@gioia.aioe.org>
<tclltg$3r6oa$2@dont-email.me> <tclmu9$3qdmr$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="39ede03c87ab6fa0bf42b12d5a4aa4c7";
logging-data="4072786"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18VJyeGt1TWxCEN5llPoDM7J4NrscGmflY="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:VkJwdfqj7q9sZj+OxAg5NKDrZZI=
 by: Dan Espen - Sat, 6 Aug 2022 13:18 UTC

gazelle@shell.xmission.com (Kenny McCormack) writes:

> In article <tclltg$3r6oa$2@dont-email.me>,
> Dan Espen <dan1espen@gmail.com> wrote:
> ...
>>Someone seems to be batting 1000.
>
> Hint: It's not you.

A nonsense comment from Kenny.
Another normal day.

Ask yourself, what is he batting 1000 at?
Why would I want to be doing the same?

--
Dan Espen

Re: [ANN] KornShell 93u+m/1.0.0

<tclvs0$1ufb$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5528&group=comp.unix.shell#5528

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!aioe.org!BKzeqmo2UYxb4eR2zKm0zw.user.46.165.242.75.POSTED!not-for-mail
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.shell,comp.unix.programmer
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 6 Aug 2022 15:03:28 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <tclvs0$1ufb$1@gioia.aioe.org>
References: <jkqs27F60pbU1@mid.individual.net> <tcbp2h$1217$1@gioia.aioe.org>
<20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad>
<eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org>
<5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org>
<I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org>
<qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org>
<txYGK.856348$X_i.80725@fx18.iad> <tcl95o$16up$1@gioia.aioe.org>
<87o7wxsj6b.fsf@LkoBDZeT.terraraq.uk>
Injection-Info: gioia.aioe.org; logging-data="63979"; posting-host="BKzeqmo2UYxb4eR2zKm0zw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Muttley@dastardlyhq.com - Sat, 6 Aug 2022 15:03 UTC

On Sat, 06 Aug 2022 12:30:52 +0100
Richard Kettlewell <invalid@invalid.invalid> wrote:
>Muttley@dastardlyhq.com writes:
>> scott@slp53.sl.home (Scott Lurndal) wrote:
>>>That's why we always either use she-bang, or use the invoke the script
>>
>> Wtf is "she" for? Its either called hash or pound depending on what side of
>> the atlantic you're on. Its never called "she" and I've never heard anyone
>> anywhere ever refer to it like this.
>
>People have been calling it that for ages. I’m not a fan but it’s not
>new.

I've never heard it called that and I've been using *nix for 30 years. Perhaps
its an american thing.

Re: [ANN] KornShell 93u+m/1.0.0

<tcm00j$c4$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5529&group=comp.unix.shell#5529

  copy link   Newsgroups: comp.unix.shell de.comp.os.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!aioe.org!BKzeqmo2UYxb4eR2zKm0zw.user.46.165.242.75.POSTED!not-for-mail
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.shell,de.comp.os.unix.shell,comp.unix.programmer
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 6 Aug 2022 15:05:55 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <tcm00j$c4$1@gioia.aioe.org>
References: <jkqs27F60pbU1@mid.individual.net> <tcbp2h$1217$1@gioia.aioe.org>
<20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad>
<eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org>
<5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org>
<I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org>
<qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org>
<txYGK.856348$X_i.80725@fx18.iad> <tcl95o$16up$1@gioia.aioe.org>
<tclltg$3r6oa$2@dont-email.me>
Injection-Info: gioia.aioe.org; logging-data="388"; posting-host="BKzeqmo2UYxb4eR2zKm0zw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Muttley@dastardlyhq.com - Sat, 6 Aug 2022 15:05 UTC

On Sat, 06 Aug 2022 08:13:34 -0400
Dan Espen <dan1espen@gmail.com> wrote:
>Muttley@dastardlyhq.com writes:
>
>> On Thu, 04 Aug 2022 23:23:05 GMT
>> scott@slp53.sl.home (Scott Lurndal) wrote:
>>>That's why we always either use she-bang, or use the invoke the script
>>
>> Wtf is "she" for? Its either called hash or pound depending on what side of
>> the atlantic you're on. Its never called "she" and I've never heard anyone
>> anywhere ever refer to it like this.
>
>Here, have a look:
>
>https://en.wikipedia.org/wiki/Shebang_(Unix)

Doesn't explain why though I skim read it.

>Someone seems to be batting 1000.

Is that some obscure sports analogy?

Re: [ANN] KornShell 93u+m/1.0.0

<DJvHK.122233$dh2.2346@fx46.iad>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5530&group=comp.unix.shell#5530

  copy link   Newsgroups: comp.unix.shell de.comp.os.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx46.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Newsgroups: comp.unix.shell,de.comp.os.unix.shell,comp.unix.programmer
References: <jkqs27F60pbU1@mid.individual.net> <tcbp2h$1217$1@gioia.aioe.org> <20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad> <eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org> <5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org> <I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org> <qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org> <txYGK.856348$X_i.80725@fx18.iad> <tcl95o$16up$1@gioia.aioe.org>
Lines: 10
Message-ID: <DJvHK.122233$dh2.2346@fx46.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Sat, 06 Aug 2022 15:25:23 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Sat, 06 Aug 2022 15:25:23 GMT
X-Received-Bytes: 1366
 by: Scott Lurndal - Sat, 6 Aug 2022 15:25 UTC

Muttley@dastardlyhq.com writes:
>On Thu, 04 Aug 2022 23:23:05 GMT
>scott@slp53.sl.home (Scott Lurndal) wrote:
>>That's why we always either use she-bang, or use the invoke the script
>
>Wtf is "she" for? Its either called hash or pound depending on what side of
>the atlantic you're on.

It is also known as "sharp" by musicians.

Re: [ANN] KornShell 93u+m/1.0.0

<tcm1bm$ieq$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5531&group=comp.unix.shell#5531

  copy link   Newsgroups: comp.unix.shell de.comp.os.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!aioe.org!BKzeqmo2UYxb4eR2zKm0zw.user.46.165.242.75.POSTED!not-for-mail
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.shell,de.comp.os.unix.shell,comp.unix.programmer
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 6 Aug 2022 15:28:54 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <tcm1bm$ieq$1@gioia.aioe.org>
References: <jkqs27F60pbU1@mid.individual.net> <tcbp2h$1217$1@gioia.aioe.org> <20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad> <eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org> <5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org> <I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org> <qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org> <txYGK.856348$X_i.80725@fx18.iad> <tcl95o$16up$1@gioia.aioe.org> <DJvHK.122233$dh2.2346@fx46.iad>
Injection-Info: gioia.aioe.org; logging-data="18906"; posting-host="BKzeqmo2UYxb4eR2zKm0zw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Muttley@dastardlyhq.com - Sat, 6 Aug 2022 15:28 UTC

On Sat, 06 Aug 2022 15:25:23 GMT
scott@slp53.sl.home (Scott Lurndal) wrote:
>Muttley@dastardlyhq.com writes:
>>On Thu, 04 Aug 2022 23:23:05 GMT
>>scott@slp53.sl.home (Scott Lurndal) wrote:
>>>That's why we always either use she-bang, or use the invoke the script
>>
>>Wtf is "she" for? Its either called hash or pound depending on what side of
>>the atlantic you're on.
>
>It is also known as "sharp" by musicians.

True. Also MS with C# :)

Re: [ANN] KornShell 93u+m/1.0.0

<op.1qhku9eaa3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5532&group=comp.unix.shell#5532

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dwhodgins@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.unix.shell,comp.unix.programmer
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 06 Aug 2022 11:48:35 -0400
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <op.1qhku9eaa3w0dxdave@hodgins.homeip.net>
References: <jkqs27F60pbU1@mid.individual.net> <tcbp2h$1217$1@gioia.aioe.org>
<20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad>
<eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org>
<5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org>
<I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org>
<qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org>
<txYGK.856348$X_i.80725@fx18.iad> <tcl95o$16up$1@gioia.aioe.org>
<87o7wxsj6b.fsf@LkoBDZeT.terraraq.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="c2709a2b2dc47a6843e84b9d57566309";
logging-data="4151435"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wQIwVSQfdL/fLDacAcBcljnTEASte4pw="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:JZ20xoMg+FsBYiU5m3rd7qYUtHc=
 by: David W. Hodgins - Sat, 6 Aug 2022 15:48 UTC

On Sat, 06 Aug 2022 07:30:52 -0400, Richard Kettlewell <invalid@invalid.invalid> wrote:

> Muttley@dastardlyhq.com writes:
>> scott@slp53.sl.home (Scott Lurndal) wrote:
>>> That's why we always either use she-bang, or use the invoke the script
>>
>> Wtf is "she" for? Its either called hash or pound depending on what side of
>> the atlantic you're on. Its never called "she" and I've never heard anyone
>> anywhere ever refer to it like this.
>
> People have been calling it that for ages. I’m not a fan but it’s not
> new.

Regarding the # character, I was taught it was called a number sign.
https://en.wikipedia.org/wiki/Number_sign
kcharselect agrees, Character: # U+0023, Name: NUMBER SIGN
or a sharp in musical notation.

I didn't here the term hash sign used for it till I started using usenet.
As for calling it the pound sign, I assume that's because US layout keyboards
don't have a £ key.

Regards, Dave Hodgins

Re: [ANN] KornShell 93u+m/1.0.0

<slrntet44o.2iqi.naddy@lorvorc.mips.inka.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5533&group=comp.unix.shell#5533

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!inka.de!mips.inka.de!.POSTED.localhost!not-for-mail
From: naddy@mips.inka.de (Christian Weisgerber)
Newsgroups: comp.unix.shell,comp.unix.programmer
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 6 Aug 2022 16:02:32 -0000 (UTC)
Message-ID: <slrntet44o.2iqi.naddy@lorvorc.mips.inka.de>
References: <jkqs27F60pbU1@mid.individual.net>
<tcbp2h$1217$1@gioia.aioe.org> <20220802203954.4448bda7@nx-74205>
<77fGK.128008$El2.510@fx45.iad> <eli$2208022010@qaz.wtf>
<tcegjg$3rp$1@gioia.aioe.org> <5fAGK.541056$vAW9.223342@fx10.iad>
<tch2bs$1cnl$1@gioia.aioe.org> <I6VGK.617916$J0r9.380353@fx11.iad>
<tch93j$ahg$1@gioia.aioe.org> <qZVGK.794063$JVi.446488@fx17.iad>
<tchbj4$1b6e$1@gioia.aioe.org> <txYGK.856348$X_i.80725@fx18.iad>
<tcl95o$16up$1@gioia.aioe.org> <87o7wxsj6b.fsf@LkoBDZeT.terraraq.uk>
<tclvs0$1ufb$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 6 Aug 2022 16:02:32 -0000 (UTC)
Injection-Info: lorvorc.mips.inka.de; posting-host="localhost:::1";
logging-data="84819"; mail-complaints-to="usenet@mips.inka.de"
User-Agent: slrn/1.0.3 (FreeBSD)
 by: Christian Weisgerber - Sat, 6 Aug 2022 16:02 UTC

On 2022-08-06, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:

>>>>That's why we always either use she-bang, or use the invoke the script
>>>
>>> Wtf is "she" for? Its either called hash or pound depending on what side of
>>> the atlantic you're on. Its never called "she" and I've never heard anyone
>>> anywhere ever refer to it like this.
>>
>>People have been calling it that for ages. I’m not a fan but it’s not
>>new.
>
> I've never heard it called that and I've been using *nix for 30 years. Perhaps
> its an american thing.

The combination of #! at the start of a script has been called a
"shebang" for decades.

Nobody is calling a single # a "she".

--
Christian "naddy" Weisgerber naddy@mips.inka.de

Re: Prevalence of #!

<20220806092537.343@kylheku.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5534&group=comp.unix.shell#5534

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: 480-992-1380@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell
Subject: Re: Prevalence of #!
Date: Sat, 6 Aug 2022 16:44:01 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <20220806092537.343@kylheku.com>
References: <jkqs27F60pbU1@mid.individual.net>
<tcbp2h$1217$1@gioia.aioe.org> <20220802203954.4448bda7@nx-74205>
<77fGK.128008$El2.510@fx45.iad> <eli$2208022010@qaz.wtf>
<tcegjg$3rp$1@gioia.aioe.org> <5fAGK.541056$vAW9.223342@fx10.iad>
<tch2bs$1cnl$1@gioia.aioe.org> <I6VGK.617916$J0r9.380353@fx11.iad>
<tch93j$ahg$1@gioia.aioe.org> <qZVGK.794063$JVi.446488@fx17.iad>
<tchbj4$1b6e$1@gioia.aioe.org> <tchccq$2tfg1$1@dont-email.me>
<tchi1d$2u2ak$1@dont-email.me>
<o8hvri-ram.ln1@ID-313840.user.individual.net>
<tcjos9$39mef$2@dont-email.me> <87edxutrke.fsf@nosuchdomain.example.com>
Injection-Date: Sat, 6 Aug 2022 16:44:01 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="23ec4badbe7aa14cbce78d59677cdd15";
logging-data="4165070"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//uvR2ohH1ne4JJy93IvRPoj7zgrQ71gE="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:NFqQqkoUZUNpNWaF7jXujKFrkq0=
 by: Kaz Kylheku - Sat, 6 Aug 2022 16:44 UTC

On 2022-08-05, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
> John McCue <jmccue@neutron.hsd1.ma.comcast.net> writes:
>> Geoff Clare <geoff@clare.see-my-signature.invalid> wrote:
>> <snip>
>>>
>>> Where I work 100% of (hundreds of) shell scripts shipped to customers
>>> do not have a #! line. That's because they are required to conform to
>>> POSIX, and POSIX says that if the first line starts with #! the results
>>> are unspecified.
>>
>> I never read POSIX, but '#!' statement is very odd. I do
>> not doubt POSIX says that since I think it was first done
>> many decades ago by a US Gov committee.
>
> IEEE, not the US Government.
>
>> That statement would make my head spin, as you know, a '#'
>> is a comment in all the shells I am aware of.
>> The phrase "good enough for Gov Work" comes to mind :)
>
> Yes, # introduces a comment in most shells.
>
> I haven't found that statement in POSIX about #!, but I presume the
> reason is that saying it's unspecified allows the usual implementation
> while not requiring POSIX to specify the behavior.

The usual implementation processes #! like a comment, since the
hash bang mechanism is designed to be invisible to an interpreter
which uses # comments, imposing no requirements on it.

Therefore, the only good reason the spec would be bringing in
unspecified behavior in the treatment of a certain shape of comment in a
certain place in the file would be to allow UNusual implementations of
hash bang, where the interpreter has some responsibility in parsing the
hash bang line and possibly deferring to a different interpreter.

One reason why an interpreter would look at the hash bang line specially
would be to parse multiple command line arguments out of it in an
implementation where only one argument is allowed.

#!/path/to/interp --multiple --args --here

Here interp, before processing any other arguments, could open the
script, see the #! and then edit its argument list from that
information.

The POSIX wording has the effect of allowing the above tricks.

Re: [ANN] KornShell 93u+m/1.0.0

<WkAHK.79720$iR.30643@fx44.iad>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5537&group=comp.unix.shell#5537

  copy link   Newsgroups: comp.unix.shell de.comp.os.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx44.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Newsgroups: comp.unix.shell,de.comp.os.unix.shell,comp.unix.programmer
References: <jkqs27F60pbU1@mid.individual.net> <20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad> <eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org> <5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org> <I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org> <qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org> <txYGK.856348$X_i.80725@fx18.iad> <tcl95o$16up$1@gioia.aioe.org> <DJvHK.122233$dh2.2346@fx46.iad> <tcm1bm$ieq$1@gioia.aioe.org>
Lines: 16
Message-ID: <WkAHK.79720$iR.30643@fx44.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Sat, 06 Aug 2022 20:40:22 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Sat, 06 Aug 2022 20:40:22 GMT
X-Received-Bytes: 1595
 by: Scott Lurndal - Sat, 6 Aug 2022 20:40 UTC

Muttley@dastardlyhq.com writes:
>On Sat, 06 Aug 2022 15:25:23 GMT
>scott@slp53.sl.home (Scott Lurndal) wrote:
>>Muttley@dastardlyhq.com writes:
>>>On Thu, 04 Aug 2022 23:23:05 GMT
>>>scott@slp53.sl.home (Scott Lurndal) wrote:
>>>>That's why we always either use she-bang, or use the invoke the script
>>>
>>>Wtf is "she" for? Its either called hash or pound depending on what side of
>>>the atlantic you're on.
>>
>>It is also known as "sharp" by musicians.
>
>True. Also MS with C# :)

Which is the source for _SH_e bang.

Re: [ANN] KornShell 93u+m/1.0.0

<hmAHK.79721$iR.42806@fx44.iad>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5538&group=comp.unix.shell#5538

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx44.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Newsgroups: comp.unix.shell,comp.unix.programmer
References: <jkqs27F60pbU1@mid.individual.net> <77fGK.128008$El2.510@fx45.iad> <eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org> <5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org> <I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org> <qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org> <txYGK.856348$X_i.80725@fx18.iad> <tcl95o$16up$1@gioia.aioe.org> <87o7wxsj6b.fsf@LkoBDZeT.terraraq.uk> <op.1qhku9eaa3w0dxdave@hodgins.homeip.net>
Lines: 26
Message-ID: <hmAHK.79721$iR.42806@fx44.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Sat, 06 Aug 2022 20:41:49 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Sat, 06 Aug 2022 20:41:49 GMT
X-Received-Bytes: 2145
 by: Scott Lurndal - Sat, 6 Aug 2022 20:41 UTC

"David W. Hodgins" <dwhodgins@nomail.afraid.org> writes:
>On Sat, 06 Aug 2022 07:30:52 -0400, Richard Kettlewell <invalid@invalid.invalid> wrote:
>
>> Muttley@dastardlyhq.com writes:
>>> scott@slp53.sl.home (Scott Lurndal) wrote:
>>>> That's why we always either use she-bang, or use the invoke the script
>>>
>>> Wtf is "she" for? Its either called hash or pound depending on what side of
>>> the atlantic you're on. Its never called "she" and I've never heard anyone
>>> anywhere ever refer to it like this.
>>
>> People have been calling it that for ages. I’m not a fan but it’s not
>> new.
>
>Regarding the # character, I was taught it was called a number sign.
>https://en.wikipedia.org/wiki/Number_sign
>kcharselect agrees, Character: # U+0023, Name: NUMBER SIGN
>or a sharp in musical notation.
>
>I didn't here the term hash sign used for it till I started using usenet.
>As for calling it the pound sign, I assume that's because US layout keyboards
>don't have a £ key.

In the US, long before computers, the octothorpe was used as
shorthand for one pound in weight. e.g. 100# == cw.

Re: [ANN] KornShell 93u+m/1.0.0

<87fsi9rsm6.fsf@nosuchdomain.example.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5539&group=comp.unix.shell#5539

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Keith.S.Thompson+u@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell,comp.unix.programmer
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 06 Aug 2022 14:04:33 -0700
Organization: None to speak of
Lines: 162
Message-ID: <87fsi9rsm6.fsf@nosuchdomain.example.com>
References: <jkqs27F60pbU1@mid.individual.net> <tcbp2h$1217$1@gioia.aioe.org>
<20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad>
<eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org>
<5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org>
<I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org>
<qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org>
<txYGK.856348$X_i.80725@fx18.iad>
<87v8r7tisx.fsf@nosuchdomain.example.com>
<FTaHK.628816$J0r9.382465@fx11.iad>
<87r11utvi3.fsf@nosuchdomain.example.com>
<20220806002532.996@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="de883fb70249bf3e4c71e17869dbfd2d";
logging-data="96007"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wvi4dwdbLHSKHKGxy1cuD"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:GCP3wm94/5pHrDYVdD2cyHFjPzE=
sha1:Zl6UnIXsKH7ikmXryIfqrKvOZjs=
 by: Keith Thompson - Sat, 6 Aug 2022 21:04 UTC

Kaz Kylheku <480-992-1380@kylheku.com> writes:
> On 2022-08-05, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
>> scott@slp53.sl.home (Scott Lurndal) writes:
>>> Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>>>>scott@slp53.sl.home (Scott Lurndal) writes:
>>>>> muttley@dastardlyhq.com writes:
>>>>>>On Thu, 04 Aug 2022 20:28:06 GMT
>>>>>>scott@slp53.sl.home (Scott Lurndal) wrote:
>>>>[...]
>>>>>>>If there's no she-bang, then the script can still be run by
>>>>>>>explicitly invoking the appropriate shell (bash /path/to/bash/script).
>>>>>>
>>>>>>It'll be invoked directly anyway by /bin/sh if its +x. I'd have thought in
>>>>>>you three plus decades of experience would have discovered that by now.
>>>>>
>>>>> Yes, that experience tells me that don't want to rely on that behavior,
>>>>> because it doesn't necessarily invoke /bin/sh, it invokes $SHELL.
>>>>> And if the shell script being invoked isn't in $SHELL dialect, undefined
>>>>> behavior will ensue.
>>>>>
>>>>> That's why we always either use she-bang, or use the invoke the script
>>>>> using the target shell explicitly.
>>>>
>>>>In a quick experiment, it seems that such a script is invoked either by
>>>>current shell or by /bin/sh, depending on which shell I invoke it from.
>>>>I don't see any cases where it depends on $SHELL.
>>>>
>>>>The behavior may vary on different systems -- which is why I also avoid
>>>>relying on it.
>>>
>>> Open Group says this (under execle):
>>>
>>> There are two distinct ways in which the contents of the process image
>>> file may cause the execution to fail, distinguished by the setting of
>>> errno to either [ENOEXEC] or [EINVAL] (see the ERRORS section). In the
>>> cases where the other members of the exec family of functions would fail
>>> and set errno to [ENOEXEC], the execlp() and execvp() functions shall
>>> execute a command interpreter and the environment of the executed command
>>> shall be as if the process invoked the sh utility using execl() as follows:
>>>
>>> execl(<shell path>, arg0, file, arg1, ..., (char *)0);
>>>
>>> where <shell path> is an unspecified pathname for the sh utility, file
>>> is the process image file, and for execvp(), where arg0, arg1, and
>>> so on correspond to the values passed to execvp() in argv[0], argv[1], and so on.
>>>
>>> I've worked with C library implementations that derive <shell path> from $SHELL
>>> if set.
>>
>> And for at least some shells, executing a file doesn't just invoke one
>> of the exec*() functions. When I use execvp() in a C program to execute
>> a script with no "#!" line, it uses /bin/sh. When I run the same script
>> from bash, it uses the currently running bash, even when the current
>> bash is neither $SHELL nor /bin/bash.
>
> What? Only sourcing a script should use the current shell; sourcing
> isn't execution.
>
> By "run from bash" are you referring to passing the script as a command
> line argument as in
>
> bash ./script
>
> ?

No, I mean "./script".

> That bash instance will of course read and run the script. But if you
> give bash a command via standard input:
>
> bash$ ./script
>
> that must run it in a child process..

Yes. The question is how it runs it.

When I said it uses the current shell, I meant that it invokes it using
the current shell's executable, not that it runs it under the current
shell process. I see now that I was unclear about that.

> When I do this:
>
> $ echo ./testscript | strace -o log bash
>
> The strace log has:
>
[snip]
>
> Bash reads the command and spawns a process.
>
> Moreover, if we trace this again with -f to see what the child is doing:
>
> 1670 execve("./testscript", ["./testscript"], 0x1e00500 /* 24 vars */) = -1 ENOEXEC (Exec format error)
> 1670 openat(AT_FDCWD, "./testscript", O_RDONLY|O_LARGEFILE) = 3
> 1670 read(3, "FOO=abc\ncd /\n", 128) = 13
> 1670 close(3) = 0
>
> See: execve happens.
>
> It cannot be that bash would read a command and just run it in the
> current shell, if that command isn't a built-in or user-defined
> function.

Agreed.

> It also cannot be that bash would just fork a child process, and
> then interpret the script without exec; a script without hash bang
> has to be given the proper treatment through exec to choose
> the interpreter in a consistent way.

That doesn't seem to be the case.

Given a script "foo" with no "#!", running "./foo" from a shell prompt
will either invoke /bin/sh with the script name as an argument, or
invoke the executable for the currently running shell with the script
name as an argument, depending on the shell. My experiment indicates
that bash and ksh use themselves, while zsh and dash use sh.

A demonstration on Ubuntu 20.04.04 LTS (note that my default bash is a
newer version than /bin/bash):
========================================
$ echo $BASH_VERSION
5.1.0(1)-release
$ cat foo
# No shebang

if [ "$BASH_VERSION" ] ; then echo "This is bash $BASH_VERSION"
elif [ "$KSH_VERSION" ] ; then echo "This is ksh $KSH_VERSION"
elif [ "$ZSH_VERSION" ] ; then echo "This is zsh $ZSH_VERSION"
else echo "Unknown shell"
fi
ps -f -p $$
$ ./foo
This is bash 5.1.0(1)-release
UID PID PPID C STIME TTY TIME CMD
kst 1930385 1930335 0 13:59 pts/2 00:00:00 bash -l
$ bash -c ./foo
This is bash 5.1.0(1)-release
UID PID PPID C STIME TTY TIME CMD
kst 1930417 1930335 0 14:00 pts/2 00:00:00 bash -c ./foo
$ ksh -c ./foo
This is ksh Version AJM 93u+ 2012-08-01
UID PID PPID C STIME TTY TIME CMD
kst 1930466 1930335 0 14:00 pts/2 00:00:00 ./foo ./foo
$ zsh -c ./foo
Unknown shell
UID PID PPID C STIME TTY TIME CMD
kst 1930470 1930335 0 14:00 pts/2 00:00:00 sh ./foo
$ dash -c ./foo
Unknown shell
UID PID PPID C STIME TTY TIME CMD
kst 1930513 1930512 0 14:00 pts/2 00:00:00 /bin/sh ./foo
$ ========================================

(I never write scripts without a #! line, so I hadn't noticed this
behavior until recently.)

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Philips
void Void(void) { Void(); } /* The recursive call of the void */

Re: [ANN] KornShell 93u+m/1.0.0

<87bksxrsaj.fsf@nosuchdomain.example.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5540&group=comp.unix.shell#5540

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Keith.S.Thompson+u@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell,comp.unix.programmer
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 06 Aug 2022 14:11:32 -0700
Organization: None to speak of
Lines: 34
Message-ID: <87bksxrsaj.fsf@nosuchdomain.example.com>
References: <jkqs27F60pbU1@mid.individual.net> <tcbp2h$1217$1@gioia.aioe.org>
<20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad>
<eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org>
<5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org>
<I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org>
<qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org>
<txYGK.856348$X_i.80725@fx18.iad> <tcl95o$16up$1@gioia.aioe.org>
<87o7wxsj6b.fsf@LkoBDZeT.terraraq.uk>
<op.1qhku9eaa3w0dxdave@hodgins.homeip.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="de883fb70249bf3e4c71e17869dbfd2d";
logging-data="96007"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Qlz+MCa8QdczGb8WJCpqI"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:U6MnRy1TpYq0ryZvU7w9rcfmGP0=
sha1:dI2l8uycXZX2y4rHZw1AVM6jDgE=
 by: Keith Thompson - Sat, 6 Aug 2022 21:11 UTC

"David W. Hodgins" <dwhodgins@nomail.afraid.org> writes:
> On Sat, 06 Aug 2022 07:30:52 -0400, Richard Kettlewell <invalid@invalid.invalid> wrote:
>
>> Muttley@dastardlyhq.com writes:
>>> scott@slp53.sl.home (Scott Lurndal) wrote:
>>>> That's why we always either use she-bang, or use the invoke the script
>>>
>>> Wtf is "she" for? Its either called hash or pound depending on what side of
>>> the atlantic you're on. Its never called "she" and I've never heard anyone
>>> anywhere ever refer to it like this.
>>
>> People have been calling it that for ages. I’m not a fan but it’s not
>> new.
>
> Regarding the # character, I was taught it was called a number sign.
> https://en.wikipedia.org/wiki/Number_sign
> kcharselect agrees, Character: # U+0023, Name: NUMBER SIGN
> or a sharp in musical notation.
>
> I didn't here the term hash sign used for it till I started using usenet.
> As for calling it the pound sign, I assume that's because US layout keyboards
> don't have a £ key.

And the '#' symbol is sometimes used to mean pound (weight).

Unicode calls it "NUMBER SIGN". Other names for it are pound sign,
hash, hashtag (in social media), sharp, and octothorp.

https://en.wikipedia.org/wiki/Number_sign

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Philips
void Void(void) { Void(); } /* The recursive call of the void */

Re: [ANN] KornShell 93u+m/1.0.0

<877d3lrs0s.fsf@nosuchdomain.example.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5541&group=comp.unix.shell#5541

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Keith.S.Thompson+u@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 06 Aug 2022 14:17:23 -0700
Organization: None to speak of
Lines: 21
Message-ID: <877d3lrs0s.fsf@nosuchdomain.example.com>
References: <jkqs27F60pbU1@mid.individual.net> <tcbp2h$1217$1@gioia.aioe.org>
<20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad>
<eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org>
<5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org>
<I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org>
<qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org>
<txYGK.856348$X_i.80725@fx18.iad> <tcl95o$16up$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="de883fb70249bf3e4c71e17869dbfd2d";
logging-data="96007"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+SkPyzXMnyaA2U675ubkM3"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:VZzTpzLd1jWqVCXY1YfaJbmNRJU=
sha1:6RSjOAsSHy08Y3GQhwODp9x7b6A=
 by: Keith Thompson - Sat, 6 Aug 2022 21:17 UTC

Dropping de.comp.os.unix.shell and comp.unix.programmer.
Let's stop inundating a German newsgroup with posts in English.

Muttley@dastardlyhq.com writes:
> On Thu, 04 Aug 2022 23:23:05 GMT
> scott@slp53.sl.home (Scott Lurndal) wrote:
>>That's why we always either use she-bang, or use the invoke the script
>
> Wtf is "she" for? Its either called hash or pound depending on what side of
> the atlantic you're on. Its never called "she" and I've never heard anyone
> anywhere ever refer to it like this.

I've never heard the # character called "she", but the #! is very
commonly called a "shebang". The "sh" probably comes from either "haSH"
or "SHell". "Shebang" is an existing word in other contexts, as in "the
whole shebang"; that undoubtedly inspired the choice of abbreviation.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Philips
void Void(void) { Void(); } /* The recursive call of the void */

Re: [ANN] KornShell 93u+m/1.0.0

<tcmndh$3rqi$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5542&group=comp.unix.shell#5542

  copy link   Newsgroups: comp.unix.shell de.comp.os.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dan1espen@gmail.com (Dan Espen)
Newsgroups: comp.unix.shell,de.comp.os.unix.shell,comp.unix.programmer
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 06 Aug 2022 17:45:19 -0400
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <tcmndh$3rqi$1@dont-email.me>
References: <jkqs27F60pbU1@mid.individual.net> <tcbp2h$1217$1@gioia.aioe.org>
<20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad>
<eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org>
<5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org>
<I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org>
<qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org>
<txYGK.856348$X_i.80725@fx18.iad> <tcl95o$16up$1@gioia.aioe.org>
<tclltg$3r6oa$2@dont-email.me> <tcm00j$c4$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="39ede03c87ab6fa0bf42b12d5a4aa4c7";
logging-data="126802"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+qMK6P5WihkUF6azg4OpZpuLLFusyvg0="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:IEFl8xNHVm95B9DMsI+CmKCjIW4=
 by: Dan Espen - Sat, 6 Aug 2022 21:45 UTC

Muttley@dastardlyhq.com writes:

> On Sat, 06 Aug 2022 08:13:34 -0400
> Dan Espen <dan1espen@gmail.com> wrote:
>>Muttley@dastardlyhq.com writes:
>>Someone seems to be batting 1000.
>
> Is that some obscure sports analogy?

Not obscure. Easily accessed by doing a search.

--
Dan Espen

Re: [ANN] KornShell 93u+m/1.0.0

<op.1qh1x3koa3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=5543&group=comp.unix.shell#5543

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dwhodgins@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.unix.shell,comp.unix.programmer
Subject: Re: [ANN] KornShell 93u+m/1.0.0
Date: Sat, 06 Aug 2022 17:57:29 -0400
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <op.1qh1x3koa3w0dxdave@hodgins.homeip.net>
References: <jkqs27F60pbU1@mid.individual.net> <tcbp2h$1217$1@gioia.aioe.org>
<20220802203954.4448bda7@nx-74205> <77fGK.128008$El2.510@fx45.iad>
<eli$2208022010@qaz.wtf> <tcegjg$3rp$1@gioia.aioe.org>
<5fAGK.541056$vAW9.223342@fx10.iad> <tch2bs$1cnl$1@gioia.aioe.org>
<I6VGK.617916$J0r9.380353@fx11.iad> <tch93j$ahg$1@gioia.aioe.org>
<qZVGK.794063$JVi.446488@fx17.iad> <tchbj4$1b6e$1@gioia.aioe.org>
<txYGK.856348$X_i.80725@fx18.iad> <tcl95o$16up$1@gioia.aioe.org>
<87o7wxsj6b.fsf@LkoBDZeT.terraraq.uk>
<op.1qhku9eaa3w0dxdave@hodgins.homeip.net>
<87bksxrsaj.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="1d2fdf2da69f50ddb7abae8a0758a695";
logging-data="141411"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19oZjvy+qr1S0xwMHoFAITRsfMIjB7qtcU="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:yqfqFHnyYsAoXMFztnZnZS+W+wI=
 by: David W. Hodgins - Sat, 6 Aug 2022 21:57 UTC

On Sat, 06 Aug 2022 17:11:32 -0400, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:

> "David W. Hodgins" <dwhodgins@nomail.afraid.org> writes:
>> On Sat, 06 Aug 2022 07:30:52 -0400, Richard Kettlewell <invalid@invalid.invalid> wrote:
>>
>>> Muttley@dastardlyhq.com writes:
>>>> scott@slp53.sl.home (Scott Lurndal) wrote:
>>>>> That's why we always either use she-bang, or use the invoke the script
>>>>
>>>> Wtf is "she" for? Its either called hash or pound depending on what side of
>>>> the atlantic you're on. Its never called "she" and I've never heard anyone
>>>> anywhere ever refer to it like this.
>>>
>>> People have been calling it that for ages. I’m not a fan but it’s not
>>> new.
>>
>> Regarding the # character, I was taught it was called a number sign.
>> https://en.wikipedia.org/wiki/Number_sign
>> kcharselect agrees, Character: # U+0023, Name: NUMBER SIGN
>> or a sharp in musical notation.
>>
>> I didn't here the term hash sign used for it till I started using usenet.
>> As for calling it the pound sign, I assume that's because US layout keyboards
>> don't have a £ key.
>
> And the '#' symbol is sometimes used to mean pound (weight).
>
> Unicode calls it "NUMBER SIGN". Other names for it are pound sign,
> hash, hashtag (in social media), sharp, and octothorp.
>
> https://en.wikipedia.org/wiki/Number_sign

Also, I was taught the ! is called an exclamation mark, not a bang.

I read #! as number sign, exclamation mark.

Regards, Dave Hodgins


devel / comp.unix.shell / [ANN] KornShell 93u+m/1.0.0

Pages:1234
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor