News for hackers. Stuff that matters.
Re:Dehydrated: Letsencrypt/acme client implemented as a shel... by arisudesu on Saturday April 20, 2024 @08:53AM (#40097021)
As a bash script actually, not a (implied POSIX) shell script. Do not mix these two.
Re:Dehydrated: Letsencrypt/acme client implemented as a shel... by bananskalhalk on Saturday April 20, 2024 @09:02AM (#40097073)
Seems to work in zsh too. Both bash and zsh are shells like c-shell ksh etc. Nowhere is it implied that shell-scripts are written for Bourne shell.
Re:Dehydrated: Letsencrypt/acme client implemented as a shel... by sambazi on Saturday April 20, 2024 @10:54AM (#40097816)
both bash and zsh are orders of magnitude more complex than sh or even ksh
Re:Dehydrated: Letsencrypt/acme client implemented as a shel... by arisudesu on Saturday April 20, 2024 @04:56PM (#40100936)
I am not familiar with zsh, but is it really interpreted by zsh? Because the script has #!/usr/bin/env bash in its shebang, isn't it executed by bash on your system, even if launched from zsh?
Re:Dehydrated: Letsencrypt/acme client implemented as a shel... by bananskalhalk on Sunday April 21, 2024 @11:19AM (#40106423)
It seems to be very source-able in both bash and zsh. If you just executed it, it will run in bash.

They seem to have gone through some effort for this to be true.

Re:Dehydrated: Letsencrypt/acme client implemented as a shel... by keybored on Saturday April 20, 2024 @11:18AM (#40098025)
Bash is a shell script. Posix is not implied.
Re:Dehydrated: Letsencrypt/acme client implemented as a shel... by arisudesu on Saturday April 20, 2024 @05:13PM (#40101052)
This script is explicitly a Bash script and it is not executable by every other shell present on modern unix-like systems. Examples are Korn shell, Almquist shell. Hence the distinction: if one states that the script is a shell-script, it implies that it can be interpreted by any modern shell, for which there is only one common denominator, POSIX. This script is explicitly only Bash shell compatible, not any-shell compatible.
Re:Dehydrated: Letsencrypt/acme client implemented as a shel... by yau8edq12i on Saturday April 20, 2024 @12:39PM (#40098588)
> (implied POSIX) shell script

Why would POSIX be implied in any way? I mainly use windows, should I have been upset because I thought cmd or powershell was implied?