id summary reporter owner description type status priority milestone component version resolution keywords cc blockedby blocking branch_state votes 3237 Fish subshell pwd passing to mc is broken on Debian (with patch) chown andrew_b " Fish subshell pwd passing doesn't work on Debian Wheezy when under $HOME since the default fish setup on Wheezy has a pwd function that compresses $HOME to ~. Version: master, commit aa6ad48 Steps to reproduce: * start fish shell & make mc use it as a subshell {{{ fish set SHELL (which fish) }}} * start mc from $HOME {{{ cd ~ mc }}} * go to subshell * if not on Wheezy, simulate the pwd implementation (has to be done in subshell on Ubuntu) {{{ function pwd echo $PWD | sed -e ""s|^$HOME|~|"" end }}} * change to some sub-dir {{{ cd some_dir }}} * return from subshell Expected behaviour: * return to mc with current panel in ~/some_dir Actual behaviour: * warning message appears ""The commander can't change to the directory that the subshell claims you are in..."" * returns to mc with current panel still in ~ Instead of calling pwd (which can be a function), it is safer to use the $PWD variable since it is read-only and not manipulated. Attached is a patch with the change to echo $PWD. Tested on Debian 7 with fish 1.23.1 and Ubuntu 14.04 with fish 2.0.0 " defect closed major 4.8.13 mc-core master fixed merged committed-master