[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Uqjau-announce] eliminate 1 fork in getopts sections
From: |
uqjau-announce |
Subject: |
[Uqjau-announce] eliminate 1 fork in getopts sections |
Date: |
Fri, 02 Aug 2013 10:44:38 -0500 |
This update triggered by suggestion from
Chris F.A. Johnson, author <http://shell.cfajohnson.com/>
Did a 'perl -i' style edit on a fairly long list of scripts, that had
a line related to getopts, like:
shift $(expr $OPTIND - 1)
Chris points out that forking to run expr for integer math has
been unneeded for years. The code was old, so I was "too used to
it, to see it was outdated"- thanks Chris.
The updated lines look like:
shift $(( $OPTIND -1 ))
The update is in the usual location:
http://download.savannah.gnu.org/releases/uqjau
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Uqjau-announce] eliminate 1 fork in getopts sections,
uqjau-announce <=