Uncomplete multiline PS1 after 'display-shell-version'

2017-11-03 Thread Arnaud Gaillard
PROMPT. Repeat-By: ~$ PS1='a\nb\nc\nd$ ' a b c d$ GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin) d$ This was also tested on 4.3 and the bug occurred as well. Best regards, -- Arnaud Gaillard El Magnifico

printf does not return error on readonly assignment

2017-07-05 Thread Arnaud Gaillard
ng from *bash*. Indeed, trying to use `printf` to assign a value to `$1` for example, does return a error: > bash$ printf -v 1 2 > -bash: `1': not a valid identifier > bash$ echo $? > 2 Repeat-By: > bash$ readonly var=1 > bash$ var=2 > -bash: var: readonly variable > bash$ echo $? > 1 > bash$ printf -v var 2 > -bash: var: readonly variable > echo $? > 0 Sincerely yours, -- Arnaud GAILLARD