Re: numerical comparison missing in bash and expr

2020-03-11 Thread Joseph A. Russo
Hi, Thank you I appreciate the explanation and the prompt response. Joe On 3/11/20 9:24 AM, Greg Wooledge wrote: On Wed, Mar 11, 2020 at 07:29:38AM -0400, Joseph A. Russo wrote: # the following two lines work [ 5 < 10 ] && echo true || echo false [ 5 > 10 ] && echo true || echo false You'

Re: numerical comparison missing in bash and expr

2020-03-11 Thread Greg Wooledge
On Wed, Mar 11, 2020 at 07:29:38AM -0400, Joseph A. Russo wrote: > # the following two lines work > [ 5 < 10 ] && echo true || echo false > [ 5 > 10 ] && echo true || echo false You've misunderstood the syntax here. The < sign introduces a redirection of standard input, from a file named