[NCLUG] /etc/environment
John L. Bass
jbass at dmsd.com
Sun Aug 19 13:34:44 MDT 2007
bob at proulx.com (Bob Proulx) writes:
> You meant 'expr' in the above, right?
> a=`expr $a + 1`
> :-)
yep ... said that last night :)
> Note that in today's modern shells I would recommend doing math
> directly in $((...)) expressions. It is POSIX standard and all
> standard shells support it.
> a=$(( $a + 1 ))
> [This does not apply to /etc/environment though.]
Which I consider a gross bug, including the original problem with
previously defined variable evaluations not supported.
John
More information about the NCLUG
mailing list