Problem with Bash script: 'declare: not found' - Ask Ubuntu


i had script running fine when ran today, says declare: not found. using bash shell , path @ starting of script correct.

two flagged lines in script follows:

declare -a response response=($result) 

it says ( unexpected guess coming because of first error. worth mentioning point when type in declare directly works fine.

declare | grep user shows

user=ashfame username=ashfame            values="$svn_bash_username"; 

so, whats wrong here?

are using sh instead of bash? sh (linked dash) not support declare keyword, nor syntax

var=(list)  

for initializing arrays.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User