Chuck Esterbrook wrote:
>..
> With a smile I tried $-1 and did actually get some output:
> hB1
> 
> Is that a meaningful value about something or random memory contents
> relayed by underlying pointer arithmetic in bash???
> 
> echo $-2 gives hB2 and $-3 hB3.
> 
> My shell gives somewhat different values than the script: himBH1 himBH2
> himBH3
> 
> I'm using bash 2.05b.0(1)-release on Mac OS X.

I get similar results from
  GNU bash, version 3.1.17(1)-release (x86_64-redhat-linux-gnu)

The fact that anything at all is returned for a "negative" index is
weird! Maybe it deserves a bug report?

I do note that ${-1} returns an error message.

Regards,
..jim

-- 
[EMAIL PROTECTED]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to