This call should only return files without spaces: run-parts --list --regex '^[a-zA-Z0-9_][a-zA-Z0-9._-]*\.sh$' /etc/profile.d
But it is still useful to quote the variable to make shellcheck happy. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/683311 Title: /etc/profile has bash scripting bug To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/683311/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
