WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: piCore 8.x - .ash_history spammed by Midnight Commander  (Read 1769 times)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
piCore 8.x - .ash_history spammed by Midnight Commander
« 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.
Download a copy and keep it handy: Core book ;)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore 8.x - .ash_history spammed by Midnight Commander
« Reply #1 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!
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 673
Re: piCore 8.x - .ash_history spammed by Midnight Commander
« Reply #2 on: February 03, 2017, 05:46:59 AM »
Could MC add these when you pressing <CTRL><O>.
To switch between the MC and Shell.