Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

BUG: zsh 2.6-beta13: magic-space & history



On:
  IRIX 5.3 IP22 mips
  SunOS 5.5 Generic sun4m sparc SUNW,SPARCstation-LX
  HP-UX A.09.01 A 9000/715 two-user license

The magic-space binding seems to mess up the history of
a line with a quoted argument that spawns two lines and then
another argument. All that goes into the history is a space
and the second argument.
  - Huy

dogbert% exec zsh -f
dogbert% echo 'a
> b' c
a
b c
dogbert% history
    1  echo 'a\nb' c
    2  history
dogbert% exec zsh -f
dogbert% bindkey    ' '  magic-space
dogbert% echo 'a
> b' c
a
b c
dogbert% history
    1  bindkey    ' '  magic-space
    2   c
    3  history




Messages sorted by: Reverse Date, Date, Thread, Author