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.
[ Parent
| on HN ]
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.