Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: Misalf on February 01, 2017, 03:30:24 PM

Title: piCore 8.x - .ash_history spammed by Midnight Commander
Post by: Misalf on February 01, 2017, 03:30:24 PM
Using Midnight Commander on piCore 8.x creates lots of quite useless entries like the following in  .ash_history .
Code: [Select]
precmd() { if [ ! "${PWD##$HOME}" ]; then MC_PWD="~"; else [ "${PWD##$HOME/}" = "$PWD" ] && MC_PWD="$PWD" || MC_PWD="~/${PWD##$HOME/}"; fi; echo "$USER@$(hostname -s):$MC_PWD"; pwd>&6; kill -STOP $$; }; PRECMD=precmd; PS1='$($PRECMD)$ '
Does anyone know how to prevent / fix this?

BTW, .bash_history is not affected.
Title: Re: piCore 8.x - .ash_history spammed by Midnight Commander
Post by: bmarkus on February 03, 2017, 04:28:26 AM
I can't reproduce, both tc and root history is clean on my development system and on a new installation. Please delete your history, make a backup and watch for it. If appears again, try to identify steps caused it.

Thanks!
Title: Re: piCore 8.x - .ash_history spammed by Midnight Commander
Post by: patrikg on February 03, 2017, 05:46:59 AM
Could MC add these when you pressing <CTRL><O>.
To switch between the MC and Shell.