On 25-06-2011 01:50, Chet Ramey wrote:
On 6/24/11 1:18 PM, Rui Santos wrote:
Try this script:
#!/bin/bash
declare -ax array
array[$(( $( echo -n 1001 ) - 1001 ))]=1
this will issue an error: line 6: 1001: command not found
If however the script is turned into:
#!/bin/bash
declare -ax array
On 24-06-2011 21:01, Greg Wooledge wrote:
On Fri, Jun 24, 2011 at 06:18:08PM +0100, Rui Santos wrote:
Try this script:
#!/bin/bash
declare -ax array
array[$(( $( echo -n 1001 ) - 1001 ))]=1
this will issue an error: line 6: 1001: command not found
imadev:~$ unset array
imadev:~$ array[$(( $(
On 6/24/11 1:18 PM, Rui Santos wrote:
> Try this script:
> #!/bin/bash
>
> declare -ax array
> array[$(( $( echo -n 1001 ) - 1001 ))]=1
>
> this will issue an error: line 6: 1001: command not found
>
> If however the script is turned into:
> #!/bin/bash
>
> declare -ax array
> array[$(( `echo
On Fri, Jun 24, 2011 at 06:18:08PM +0100, Rui Santos wrote:
> Try this script:
> #!/bin/bash
>
> declare -ax array
> array[$(( $( echo -n 1001 ) - 1001 ))]=1
>
> this will issue an error: line 6: 1001: command not found
imadev:~$ unset array
imadev:~$ array[$(( $( echo -n 1001 ) - 1001 ))]=1
ima
Hi all,
This is my first post to this mailing list. If I'm doing anything that
is not right, please do let me know.
While upgrading my company's Linux distribution, I also upgrade Bash to
version 4.2-10, and found a glitch, that I consider a BUG. However I
might be doing something wrong. He