getopts doesn't work in Ubuntu 9.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
abcde (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: yelp
This code does not produce any output:
#!/bin/bash
# submit like so: bash getopts.sh -b -c george
# or like so: bash getopts.sh -bc george
#an option followed by a colon requires an argument:
while getopts abc:def opt; do
echo opt= $opt and OPTARG= $OPTARG
done
ProblemType: Bug
Architecture: amd64
Date: Sat Jan 23 16:23:22 2010
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/yelp
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
NonfreeKernelMo
Package: yelp 2.28.0-0ubuntu2
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: yelp
Uname: Linux 2.6.31-17-generic x86_64
blaze_o_glory, thank you for taking the time to report this issue. I tried your script and it works fine for me. I can not reproduce your stated behavior. Have you done any sort of customization of your user profile?