x=notOK cat <<EOF 1: ${x#not} 2: ${x#\n\o\t} 3: ${x#"not"} 4: ${x#'not'} 5: ${x#$'not'} EOF
Actual output: 1: OK 2: OK 3: OK 4: notOK 5: OK Expected output: 1: OK 2: OK 3: OK 4: OK 5: OK Same bug exists with ##, % and %%. Thanks, - M.
x=notOK cat <<EOF 1: ${x#not} 2: ${x#\n\o\t} 3: ${x#"not"} 4: ${x#'not'} 5: ${x#$'not'} EOF
Actual output: 1: OK 2: OK 3: OK 4: notOK 5: OK Expected output: 1: OK 2: OK 3: OK 4: OK 5: OK Same bug exists with ##, % and %%. Thanks, - M.