Comply with POSIX shell syntax. Fixes #7908.
Merge pull request #7910 from s0undt3ch/issues/7908-posix-shell

Comply with POSIX shell syntax. Fixes #7908.