help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: not sure about number comparison


From: Kerin Millar
Subject: Re: not sure about number comparison
Date: Sun, 19 Feb 2023 19:53:49 +0000

On Sun, 19 Feb 2023 14:15:41 -0500
Roger <rogerx.oss@gmail.com> wrote:

> I like this method.
> 
> Any notes on POSIX compliance?  Or as it sounds if most are doing it, is it
> already considered mostly POSIX compliant?

POSIX sh does not support the (( conditional construct. If it is your intent to 
write for sh, you might be interested in knowing that shellcheck.net does a 
good job of raising issues of conformance. Also, the specification for sh can 
be found here: 
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18.

--
Kerin Millar



reply via email to

[Prev in Thread] Current Thread [Next in Thread]