Berthold Lorke <berthold@xxxxxxxx> wrote: > Hello! > > The POSIX standard specifies for PS1 > https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html > > > ``` > PS1 > > Each time an interactive shell is ready to read a command, the value of > this variable shall be subjected to parameter expansion and written to > standard error. The default value shall be "$ ". For users who have > specific additional implementation-defined privileges, the default may > be another, implementation-defined value. The shell shall replace each > instance of the character '!' in PS1 with the history file number of the > next command to be typed. Escaping the '!' with another '!' (that is, > "!!" ) shall place the literal character '!' in the prompt. This volume > of POSIX.1-2017 specifies the effects of the variable only for systems > supporting the User Portability Utilities option. > ``` Dash doesn't support the full set of UPU options and that includes history. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt