sh(1) still has support for "let" keyword
trhodes at FreeBSD.org
Thu Nov 16 10:04:38 UTC 2006
PR: 104432 discusses the keyword let, which seems to be nothing
more than an alias for expr and works just like it. It appears
to have been around since FreeBSD 2.2. At one point, this was
documented in the manual pages, originally it was documented in
revision 220.127.116.11, RELENG_2_2. That revision was a stable branch
at the time and perhaps, when RELENG_3 was branched, the changes
were not picked up.
I was thinking of removing it, but discussions pushed me to
consider placing it under #ifndef _POSIX_SOURCE, kind of like
how ed(1) has. Questions/comments?
More information about the freebsd-standards