Merged fix-1038995-bash-options-starting-with-no

This commit is contained in:
Brian Fraser
2012-08-28 22:05:33 -03:00
7 changed files with 65 additions and 1 deletions

View File

@@ -427,6 +427,9 @@ _parse_command_line() {
if [ -f "$PT_TMPDIR/po/$base_opt" ]; then
opt_is_negated=1
opt="$base_opt"
else
opt_is_negated=""
opt=$(echo $opt | sed 's/^-*//')
fi
else
# Handle normal cases: --option and --no-option.