Problem with Bash script: 'declare: not found'

Posted by Ashfame on Ask Ubuntu See other posts from Ask Ubuntu or by Ashfame
Published on 2011-02-27T14:14:04Z Indexed on 2011/02/27 15:31 UTC
Read the original article Hit count: 388

Filed under:
|

I had a script which was running fine but when I ran it today, it says declare: not found. I am using bash shell and path at the starting of the script is correct.

Two flagged lines in my script are as follows:

declare -a RESPONSE
RESPONSE=($RESULT)

It also says ( is unexpected but I guess that is coming up because of the first error. Worth mentioning point is when I type in declare directly works fine.

declare | grep USER shows

USER=ashfame
USERNAME=ashfame
           values="$SVN_BASH_USERNAME";

So, whats wrong here?

© Ask Ubuntu or respective owner

Related posts about bash

Related posts about shell-scripting