[ruby-dev:50102] [Ruby trunk Bug#13522] Solaris10上で make update-rubyspec が bad substitution で失敗

From: ngotogenome@...
Date: 2017-04-28 12:13:25 UTC
List: ruby-dev #50102
Issue #13522 has been reported by ngoto (Naohisa Goto).

----------------------------------------
Bug #13522: Solaris10上で make update-rubyspec が bad substitution で失敗
https://bugs.ruby-lang.org/issues/13522

* Author: ngoto (Naohisa Goto)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
おそらく r58467 以降、またもやSolaris 10上にて make update-rubyspec が bad substitution で失敗します。
現象は [Bug #13424] と同一ですが、原因は r58467 の変更にあると思いますので新チケットにしました。

```
$ make update-rubyspec V=1
./tool/git-refresh -C ./spec  \
        git://github.com/ruby/mspec.git mspec
retrieving mspec ...
./tool/git-refresh: bad substitution
make: *** [update-mspec] Error 1
```

Solaris の /bin/sh では、`${branch:+git fetch "$@"}` がエラーになっているようです。

```
$ branch="aaa"
$ export branch
$ ${branch:+/bin/echo abc}
bad substitution
$ /bin/echo xyz ${branch:+checkout} "${branch:-pull}" tuv
xyz checkout aaa tuv
$
$ unset branch
$ ${branch:+/bin/echo abc}
bad substitution
$ /bin/echo xyz ${branch:+checkout} "${branch:-pull}" tuv
xyz pull tuv
```




-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next