Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month, online, via Jitsi Meet.

BLU Discuss list archive


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

[Discuss] through the looking glass



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



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org