I have been running a bash script under FBSD for several years without a problem. I just installed PC-BSD and installed the Bash PBI. Now the interpreter does not recognize the script as a bash script?
Simplified script example.
declare PROGRAM="Hello world"
printf "Hi and %s\n" $PROGRAM
The execute bit is set.
The ~/bin directory (location of script) is in my PATH.
"which" command reports /bin/bash.
Now when I execute:
declare: Command not found.
PROGRAM: Undefined variable.
when I execute:
Hi and Hello World
Any Ideas why the interpreter is not using bash with the shabang line?
On a side note! Please Please Please include the man pages with bpi's like bash! (command line utilities) This was one of my pet-peves with linux! FBSD seemed to always include the man pages and that was wonderful!