[MacPorts] #14452: python_select produce unneeded warnings when the only option is "-n"
MacPorts
trac at macosforge.org
Fri Feb 22 21:07:27 PST 2008
#14452: python_select produce unneeded warnings when the only option is "-n"
-------------------------------+--------------------------------------------
Reporter: ebgssth at gmail.com | Owner: macports-tickets at lists.macosforge.org
Type: enhancement | Status: new
Priority: Normal | Milestone: Port Enhancements
Component: ports | Version: 1.6.0
Keywords: |
-------------------------------+--------------------------------------------
{{{
$ 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
--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14452>
MacPorts </projects/macports>
Ports system for Mac OS
More information about the macports-tickets
mailing list