mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Use getopt where possible, so this supports option letters that get
jammed together on thos platforms.
This commit is contained in:
parent
3706855d11
commit
964c798a94
1 changed files with 10 additions and 1 deletions
|
|
@ -29,7 +29,16 @@ fi
|
|||
EXPLANATION=''
|
||||
ANNOUNCE=true
|
||||
|
||||
# XXX Should use getopt(1) here.
|
||||
getopt -T >/dev/null
|
||||
if [ $? -eq 4 ] ; then
|
||||
# We have a sufficiently useful getopt(1) implementation.
|
||||
set -- `getopt -ssh m:p:qt:F: "$@"`
|
||||
else
|
||||
# This version of getopt doesn't support quoting of long options
|
||||
# with spaces, so let's not rely on it at all.
|
||||
:
|
||||
fi
|
||||
|
||||
while [ "$#" -gt 0 ] ; do
|
||||
case "$1" in
|
||||
-m)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue