id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
2104	Subshell precmd emulation fills ash/dash/csh/tcsh history with internal pwd commands	doktornotor		"E.g., if I type cd /usr/portage/distfiles into a subshell in , the folloging will get logged:

 cd ""`printf ""%b"" '\0057'`""
 cd ""`printf ""%b"" '\0057usr'`""
 cd ""`printf ""%b"" '\0057usr\0057portage'`""
 cd ""`printf ""%b"" '\0057usr\0057portage\0057distfiles'`""
 cd ""`printf ""%b"" '\0057'`""

The above is on Gentoo. 

On FreeBSD, junk gets logged as well, e.g. cd /var/log produces:

#+1267704528
cd ""`printf ""%b"" '\0057var'`""
#+1267704528
cd ""`printf ""%b"" '\0057var\0057log'`""

Have had this problem for ages, valid with any app-misc/mc version incl. the latest masked 4.7.1. Happens semi-randomly and usually doesn't happen if I press Enter before typing into the subshell. 

Reproduced on Gentoo and FreeBSD, have had this issue for ages. Currently using bash-4.1_p2 but as said above, it doesn't matter, been so for a long time.

Related downstream bug: http://bugs.gentoo.org/show_bug.cgi?id=309261

In case it matters:

$ echo $PS1
\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\]

If you need something else, let me know :)"	defect	reopened	major	Future Releases	mc-core	4.7.1			mc-trac@… kyogre1@…			no branch	
