Ticket #4521: really escape fish shell history.
commitae4553442f459cd4e01b3cf956edb043d99c6bce
authorAnton Anikin <anton@anikin.xyz>
Sun, 4 Feb 2024 15:36:45 +0000 (4 18:36 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Sun, 11 Feb 2024 16:19:40 +0000 (11 19:19 +0300)
tree1187d6a32962a146935130b02e4fd851d1ea47e1
parenta58e0a1d6182beadec7d2db1f434082fb9744719
Ticket #4521: really escape fish shell history.

Some of the "service" commands generated by the mc "leak" into the fish
subshell history available to the user. An example to reproduce:

  *  set user shell to fish and start mc (SHELL=/usr/bin/fish mc)
  *  navigate to any directory
  *  press Ctrl+o
  *  press \u2191 button (UP, go back in history)
  *  observe " cd (printf '%b' ... " command

This commit avoids the " cd (printf '%b' ... " commands in the fish
history.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/subshell/common.c