I am trying to create an upstart configuration file where inside the script section I am using shopt command to set the nullglob paramater -
shopt -s nullglob
However, with this I am getting the following error -
/proc/self/fd/9: 8: /proc/self/fd/9: shopt: not found
Can we use shopt inside an upstart script, has anyone used this before? Also, since shopt is a builtin command I couldn't find the exact path that I can include in my script to execute shopt from there. Any pointers would be extremely appreciated.
FYI - I am working on Ubuntu.
I am able to use shopt from command line and from a shell script. However only while using it inside the upstart configuration file I am having this issue.