Commit dbd93b9d by Ian Lance Taylor

libgo: avoid use of 'local' directive in shell script

    
    Avoid declaring shell variables with 'local' (not supported
    on all systems of interest).
    
    Reviewed-on: https://go-review.googlesource.com/c/145021

From-SVN: r265534
parent 797ea254
ad50884d2a4b653f7f20edc8b441fe6ad6570d55 9785e5c4e868ba55efdb33fc51872b4821770167
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.
...@@ -513,9 +513,7 @@ localname() { ...@@ -513,9 +513,7 @@ localname() {
# Returned: leaf.Mumble # Returned: leaf.Mumble
# #
symtogo() { symtogo() {
local s="" result=""
local result=""
local ndots=""
for tp in $* for tp in $*
do do
s=$(echo "$tp" | sed -e 's/\.\.z2f/%/g' | sed -e 's/.*%//') s=$(echo "$tp" | sed -e 's/\.\.z2f/%/g' | sed -e 's/.*%//')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment