Ticket #14452 (new enhancement)
select.sh produce unneeded warnings when the only option is "-n"
| Reported by: | ebgssth@… | Owned by: | raimue@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | Port Enhancements |
| Component: | ports | Version: | 1.6.0 |
| Keywords: | gcc_select python_select select.sh | Cc: | raimue@…, mww@… |
| Port: |
Description
$ python_select -n /opt/local/bin/python_select: line 83: [: ==: unary operator expected /opt/local/bin/python_select: line 83: [: ==: unary operator expected /opt/local/bin/python_select: line 83: [: ==: unary operator expected /opt/local/bin/python_select: line 83: [: ==: unary operator expected version "" is invalid!
easy fix would be
- if [ ${1} == ${version} ]; then
+ if [ x${1} == x${version} ]; then
might be better to stop script when python_select called with -n only
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

