mksh R50d: parser fixes break common “set -u” workaround, take two
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mksh |
Fix Released
|
High
|
Thorsten Glaser |
Bug Description
tglase@tglase:~ $ cat x
list_parts() {
local regex=${2:-}
local args=x
if [ -n "$regex" ]; then
fi
printf '<%s>\n' $args
}
list_parts foo
tglase@tglase:~ $ bash x
<x>
tglase@tglase:~ $ env -i PATH=$PATH mksh x
typeset -i -U BASHPID
typeset -i COLUMNS
typeset EPOCHREALTIME
typeset -x HOME
typeset IFS
typeset -i -U KSHEGID
typeset -i -U KSHGID
typeset -i -U KSHUID
typeset -r KSH_VERSION
typeset -i LINES
typeset -i OPTIND
typeset -x PATH
typeset -i -U PGRP
set -A PIPESTATUS
typeset -i -r -U PIPESTATUS[0]
typeset -i -U PPID
typeset PS1
typeset PS2
typeset PS3
typeset PS4
typeset PWD
typeset -i -U RANDOM
typeset -i SECONDS
typeset -x SHELL
typeset -i TMOUT
typeset -i -U USER_ID
<x>
Breaks: php5 maintainer scripts
Changed in mksh: | |
status: | In Progress → Fix Committed |
Bad commit is:
commit 0cf0658a0d25060 4f896b985097188 63a536f6d1
Author: tg <email address hidden>
Date: Tue Oct 7 15:22:17 2014 +0000
fix severe regression in field splitting (LP#1378208)
*sigh*