id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
4521	Really escape fish shell history	htower	andrew_b	"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 ↑ button (UP, go back in history)
* observe "" cd (printf '%b' ... "" command

Older versions of fish shell ignored commands starting with a space (and did not show the discussed `cd`-commands), but after this [[https://github.com/fish-shell/fish-shell/issues/1383|issue]], fixes were [[https://github.com/fish-shell/fish-shell/commit/9fdc4f903b8b421b18389a0f290d72cc88c128bb|made]] that emulate the behavior of zsh's `HIST_IGNORE_SPACE` feature. So, we just have to use the zsh workaround for the fish shell as well.

The proposed patch has been tested with:
* fish shell, version 3.6.1
* mc, version 4.8.27
* mc, 'master' git branch"	defect	closed	major	4.8.32	mc-core	master	fixed	subshell, fish, history	johannes			merged	committed-master
