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

numerical comparison missing in bash and expr

2020-03-11 Thread Joseph A. Russo
From: jar To: bug-bash@gnu.org,b...@packages.debian.org Subject: numerical comparison missing in bash and expr Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTY

numerical comparison missing in bash and expr

2020-03-11 Thread Joseph A. Russo
From: jar To: bug-bash@gnu.org,b...@packages.debian.org Subject: numerical comparison missing in bash and expr Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTY