up. String without shebang returns 0 for pgrep -c $0 or 1 for ps aux | grep -c $0. Solved with help of user Valrust from forum.ubuntu.ru, it's standart behavior of the system. In that case new copy of script runs as "bash" without agruments and try to find /address/name.sh in ps aux returns nothing, but pgrep -c bash returns more and more values depends from run copies.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1958060 Title: bash returns wrong variable value/call more proccesses? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1958060/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs