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 <[email protected]> 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 > [email protected] > http://lists.blu.org/mailman/listinfo/discuss -- John Abreau / Executive Director, Boston Linux & Unix Email: [email protected] / WWW http://www.abreau.net / PGP-Key-ID 0x920063C6 PGP-Key-Fingerprint A5AD 6BE1 FEFE 8E4F 5C23 C2D0 E885 E17C 9200 63C6 _______________________________________________ Discuss mailing list [email protected] http://lists.blu.org/mailman/listinfo/discuss
