history

After removing subshell I realise that I can't use C-o any more so that is useless. I just want to be able to use misc/mc on FreeBSD the same way I use it on Linux, ie C-o brings up a command window and up and down scrolls through my history without any of this "print" crap.

Maybe it's a configuration option..
 
Coming back to an unresolved thread... I was just using misc/mc on FreeNAS, which seems to have it included and noticed there was none of this "`printf '%b' '\0057mnt\0057tmp'`" nonesense and wondered why that would be so did a comparison of mc -V...
On FreeNAS
Code:
GNU Midnight Commander 4.8.24
Built with GLib 2.56.3
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, fish, smbfs
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;
As a normal FreeBSD pkg
Code:
GNU Midnight Commander 4.8.26
Built with GLib 2.66.7
Built with S-Lang 2.3.2 with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm
With support for X11 events
With internationalization support
With multiple codepages support
Virtual File Systems:
 cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, fish, smbfs
Data types:
 char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;
so it looks like subshell support is not responsible for all crap. I could try using the FreeNAS build on FreeBSD and see if it makes a difference. Is there any reason it wouldn't run?
 
none of this "`printf '%b' '\0057mnt\0057tmp'`" nonesense
I think it helps to analyze your irritant.
Notice how it has "mnt" in it and some sort of temp file.

So what would cause things to mount in command prompt? Do you have gvfs installed?
pkg info |grep gvfs
It does some blatant stuff and I would start there on my box.

Another way to analyze this is to use a new install with just mc and pkg installed. See if acts the same.
My gut feeling is this is some other package involved.
 
Not sure where this comes from or what it really means, but could it be responsible for all my 'printfs' ?

Code:
set echo_style=both ; set prompt='%n@%m:%~%# ' ; alias precmd 'echo -n;echo $cwd:q >>/tmp/mc-root/mc.pipe.58385; kill -STOP $$'
 
Port has been updated ("Tell users that /bin/sh, our base system sh(1), is not supported as concurrent subshell because it does not allow "precmd" hooks"):

Hey balanga, I gave you another hint: Simply use another shell (so mc's history don't bother your "real" one); What about that solution? Be creative ;) You can f.e. use an alias to start mc in another shell…
 
Back
Top