I have a script that start out with this:
#!/sbin/sh
Several things run.
However I cannot get:
shopt -s nullglob
to run in Bourne. I get:
shopt: not found
So within the main script (after #!/sbin/sh at the top) I start bash with:
bash
and try to run what I need with:
shopt -s nullglob
But after it starts bash the main script just sits there and does not continue running. If I switch the entire script over to bash shopt -s nullglob works fine but breaks other things that need Bourne. My plan was to exit after needing Bash to go back to Bourne. If I run the lines manually it woks fine, but again does not by running the script itself.
How can I get:
shopt -s nullglob
to work in Bourne or get Bash to do things within the Bourne script?
I am on Solaris 10.
---------- Post updated at 04:36 PM ---------- Previous update was at 02:57 PM ----------
Since no ideas are coming about, I am going to re-write so I don't need nullglob.
Thanks for reading.