On 3/4/17 7:15 AM, Rob la Lau wrote: > Hello, > > I'm not sure whether I found a bug in Bash or in it's documentation. > > The documentation suggests that the arithmetic binary operator '-eq' is > for integers ("Arg1 and arg2 may be positive or negative integers."), > but when using it with '[[ ]]' it doesn't fail on strings.
When used with [[, the arithmetic operators take arithmetic expressions as their arguments. I'll add something noting this to the documentation. Thanks for the report. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/