Closed maxxer closed 4 years ago
Wondering how it works, as from this (old) thread sh
is hardcoded in agent's source
Thank you for your feedback. I thought that all distro have link from sh to bash.
I try to fix today.
whereis sh
sh: /bin/sh /usr/share/man/man1p/sh.1p.bz2
ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Apr 20 14:15 /bin/sh -> bash
Done. Please try new version.
Test with sh on Debian-10.4
echo $0
sh
cat /etc/debian_version
10.4
whereis sh
sh: /bin/sh /bin/sh.distrib /usr/share/man/man1/sh.1.gz
ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Jan 17 2019 /bin/sh -> dash
I have to use the awk version but it works, thank you very much
Ubuntu 18.04, Zabbix agent 4.0.22.
I tried both config files. Looks like the default shell in Ubuntu is
sh
, not supporting the[[
syntax.