Bash dokümantasyonunun söylediği:
PS1 The value of this parameter is expanded (see PROMPTING below)
and used as the primary prompt string. The default value is
``\s-\v\$ ''.
PS2 The value of this parameter is expanded as with PS1 and used as
the secondary prompt string. The default is ``> ''.
PS3 The value of this parameter is used as the prompt for the select
command (see SHELL GRAMMAR above).
PS4 The value of this parameter is expanded as with PS1 and the
value is printed before each command bash displays during an
execution trace. The first character of PS4 is replicated mul‐
tiple times, as necessary, to indicate multiple levels of indi‐
rection. The default is ``+ ''.
Yani, PS1istemi "bir komut bekliyor" normal olduğunu, PS2tamamlanmamış bir komutu yazdıktan sonra gördüğünü istemi devamı,
PS3zaman gösterilen selectkomut girişi için bekliyor ve
PS4ayıklama iz çizgi öneki.
Aldığım belgeler öyle değil, ancak PS3bash için varsayılan
#?:
$ select x in foo bar baz; do echo $x; done
1) foo
2) bar
3) baz
#? 3
baz
#? 2
bar
#? ^C