[Discuss] through the looking glass

John Abreau abreauj at gmail.com
Sun Jun 3 17:55:17 EDT 2018


In the test(1) command, if I recall correctly, the greater-than
operator is "-gt", not ">", and the less-than operator is "-lt", not
"<".

At least, that's how I first learned it back in 1983.





On Sat, Jun 2, 2018 at 12:47 PM, Richard Pieri <richard.pieri at gmail.com> wrote:
> On 6/2/2018 12:42 PM, dan moylan wrote:
>> not portable?  where would that be?
>
> Not portable in that "[[" is specific to Bash. You may not find it in
> other Bourne-derived shells.
>
> --
> Rich Pieri
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://lists.blu.org/mailman/listinfo/discuss



-- 
John Abreau / Executive Director, Boston Linux & Unix
Email: abreauj at gmail.com / WWW http://www.abreau.net / PGP-Key-ID 0x920063C6
PGP-Key-Fingerprint A5AD 6BE1 FEFE 8E4F 5C23  C2D0 E885 E17C 9200 63C6



More information about the Discuss mailing list