history

When I display my command history I get someting like:-

Code:
  1011    8:01    history
  1012    8:09    cd "`printf '%b' '\0057mnt\0057tmp'`"
  1013    8:09    cd "`printf '%b' '\0057mnt\0057tmp\0057bin'`"
  1014    8:33    cd "`printf '%b' '\0057mnt\0057tmp'`"
  1015    8:33    cd "`printf '%b' '\0057mnt'`"
  1016    8:34    umount /mnt/tmp

Is there any way to avoid this 'cd printf' stuff? It just gets in the way. It doesn't occur on Linux. Is it configurable in some way?
 
What's your prompt set to? Because these look like parts of a 'dynamic' prompt.
 
I'm just using a standard installation. Not configured anything...
This is part of my ~/.cshrc, ie what comes with the installation:-
Code:
if ($?prompt) then
<------># An interactive shell -- set some stuff up
<------>set prompt = "%N@%m:%~ %# "
<------>set promptchars = "%#"

<------>set filec
<------>set history = 1000
<------>set savehist = (1000 merge)
<------>set autolist = ambiguous
<------># Use history to aid expansion
<------>set autoexpand
<------>set autorehash
<------>set mail = (/var/mail/$USER)
<------>if ( $?tcsh ) then
<------><------>bindkey "^W" backward-delete-word
<------><------>bindkey -k up history-search-backward
<------><------>bindkey -k down history-search-forward
<------>endif

endif
 
SirDice is on the right track. This looks like the crap midnight commander used to produce back in the day when i used it.

Sorry, I don't have the answer at hand.
 
Midnight Commander was my first thought, too. If it is used on the OPs machine: You'll get rid of it by compiling the port without subshell support.
 
I do use Midnight Commander extensively. Is that what is causing it? The same doesn't happen when I use it under Linux.
 
I do use Midnight Commander extensively. Is that what is causing it? The same doesn't happen when I use it under Linux.
It's probably not an option that's compiled in on whatever-version-of-linux. Either build it from ports or change your shell; they seem to be the only options.
 
It's probably not an option that's compiled in on whatever-version-of-linux. Either build it from ports or change your shell; they seem to be the only options.
I thought I'd try building it, but get 'Invalid perl5 version 5.32'..

I can see this being a marathon session get it built.
 
Your ~/.profile will be hard-linked to /.profile. If you don't want to change /.profile (root rights needed for that), you need to detach it. Then it will be saved as a file in your home dir without link.
 
Everyone says not to mix ports and packages
I don't agree. It can make trouble, but it mustn't. In case of Midnight Commander I'm doing this for years without an issue, and otherwise you won't get rid of your "broken" history (afaik…: or use Bash as shell?). Other ports like LibreOffice have much more potential for problems when mixing ports and packages, and IMO if your doing this you should be able to interpret errors accordingly (!) and know when you've got to recompile your selfmade packages; Also you should use a ports tree matching your package repository as best as possible.
 
Midnight Commander was my first thought, too. If it is used on the OPs machine: You'll get rid of it by compiling the port without subshell support.
Just looked at the Makefile and 'subshell' is mentioned quite a few times, so not sure how to remove its support...
 
I prefer it if things are simple, just not familiar making objects with lots of objects.

What does make config actually do? Modify the Makefile?
 
Back
Top