#71828 ash: a bang, `!', in PS1 is not replaced by history number

Package:
dash
Source:
dash
Description:
POSIX-compliant shell
Submitter:
Jeff Sheinberg
Date:
2011-09-27 01:18:15 UTC
Severity:
wishlist
#71828#5
Date:
2000-09-16 21:24:07 UTC
From:
To:
Package: ash
Version: 0.3.7-3
Severity: normal

Hi,

According to SUSv2, in xcu/chap2.html,

    The shell replaces 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, !!) places the
    literal character "!" in the prompt.

Ash does not implement this behavior.

Thanks,