https://bugs.kde.org/show_bug.cgi?id=464987

--- Comment #2 from zer0-x.7t...@aleeas.com ---
(In reply to Igor Kushnir from comment #1)
> Which commonly used shell the script does not support?
> 
> The last commit that changed that script made it compatible with zsh. Is
> there a shebang that indicates both bash and zsh are supported?

For example the Debian Almquist shell (DASH) is a very POSIX-compliant shell,
so it doesn't support any additional things like in `zsh` and `bash`.

As I know it is the default shell for `/bin/sh` in both debian and ubuntu:
- https://wiki.ubuntu.com/DashAsBinSh
-
https://en.wikipedia.org/wiki/Debian_Almquist_shell#Adoption_in_Debian_and_Ubuntu

 so it will cause problems at least in those two distros. 

The `bash` and `zsh` shells are POSIX-compatible so if the script is made to be
POSIX-compliant it should also work in `bash` and `zsh` without problems.

I don't think that there is a shebang for both zsh and bash, but if you don't
want to be POSIX-compliant maybe you can create another POSIX-compliant shell
script to select between zsh and bash then use the script as the shebang.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to