RE: [PATCH 4/7] test-hg.sh: eliminate 'local' bashism
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Nov 11, 2013, 11:40 UTC
- Message-ID
- <5280c24640449_6841541e7877@nysa.notmuch>
- In-Reply-To
- <1384142712-2936-5-git-send-email-rhansen@bbn.com>
Richard Hansen wrote:
Show 5 quoted lines
> Unlike bash, POSIX shell does not specify a 'local' command for > declaring function-local variable scope. Except for IFS, the variable > names are not used anywhere else in the script so simply remove the > 'local'. For IFS, move the assignment to the 'read' command to > prevent it from affecting code outside the function.
Makes sense.
-- Felipe Contreras