Re: (Partly solved)Re: why does the shell show commands foolishly when I press UP key?

2007-11-12 Thread Thilo Six
Andrei Popescu wrote the following on 12.11.2007 19:26

<<-snip->>

> I have seen this in the past when running mc, but not latelly (maybe the 
> bug was fixed in unstable?).
> 
> Regards,
> Andrei

you are right it´s seems to be fixed now - good to know.

bye
-- 
Thilo

key: 0x4A411E09


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: (Partly solved)Re: why does the shell show commands foolishly when I press UP key?

2007-11-12 Thread Thilo Six
Pál Csányi wrote the following on 10.11.2007 11:12
> I use
> GNU bash, version 3.1.17(1)-release (i486-pc-linux-gnu)
> in Debian Etch and I get this when I use history:
> 
> cd "`echo -e '\057'`"
> 
> What is this and how can I get rid of it?

i had problem in past.
I solved for me with:

alias mc='HISTFILE=$HOME/.mc/mc_history mc'

That way i do not pollute my bash_history with mc noise, without losing the
mc history feature.

bye
-- 
Thilo

key: 0x4A411E09


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: (Partly solved)Re: why does the shell show commands foolishly when I press UP key?

2007-11-12 Thread Andrei Popescu
On Sat, Nov 10, 2007 at 01:47:00PM +0100, Florian Kulzer wrote:
> On Sat, Nov 10, 2007 at 11:12:57 +0100, Pál Csányi wrote:
> > I use
> > GNU bash, version 3.1.17(1)-release (i486-pc-linux-gnu)
> > in Debian Etch and I get this when I use history:
> > 
> > cd "`echo -e '\057'`"
> > 
> > What is this
> 
> It seems to be a complicated way to do
> 
> cd /
> 
> (\057 is "/", the backticks `` substitute the output of the echo
>  command.)
> 
> >  and how can I get rid of it?
> 
> Remove the line from ~/.bash_history if it bothers you that much.

I have seen this in the past when running mc, but not latelly (maybe the 
bug was fixed in unstable?).

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)


signature.asc
Description: Digital signature


Re: (Partly solved)Re: why does the shell show commands foolishly when I press UP key?

2007-11-12 Thread dulev
> Sorry, I use sarge, which has bash 2.
> 
> > > > The ls command show once, but pwd show twice.
> > > > It seems to me that HISTCONTROL=ignoredups sometime work, sometime
> > > > does not work.
> > > > It does not work as I have hoped.
> > > 
> > > Probably you need to use HISTCONTROL=erasedups
> > 
> > In bash3 only.

I was presume. :)
But, sarge have bash3 (3.0-12).
You can try.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: (Partly solved)Re: why does the shell show commands foolishly when I press UP key?

2007-11-10 Thread Florian Kulzer
On Sat, Nov 10, 2007 at 11:12:57 +0100, Pál Csányi wrote:
> I use
> GNU bash, version 3.1.17(1)-release (i486-pc-linux-gnu)
> in Debian Etch and I get this when I use history:
> 
> cd "`echo -e '\057'`"
> 
> What is this

It seems to be a complicated way to do

cd /

(\057 is "/", the backticks `` substitute the output of the echo
 command.)

>  and how can I get rid of it?

Remove the line from ~/.bash_history if it bothers you that much.

-- 
Regards,| http://users.icfo.es/Florian.Kulzer
  Florian   |



Re: (Partly solved)Re: why does the shell show commands foolishly when I press UP key?

2007-11-10 Thread Pál Csányi
I use
GNU bash, version 3.1.17(1)-release (i486-pc-linux-gnu)
in Debian Etch and I get this when I use history:

cd "`echo -e '\057'`"

What is this and how can I get rid of it?

-- 
Regards, Paul Csanyi
http://www.freewebs.com/csanyi-pal/index.htm


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: (Partly solved)Re: why does the shell show commands foolishly when I press UP key?

2007-11-09 Thread Serena Cantor
Sorry, I use sarge, which has bash 2.

--- dulev <[EMAIL PROTECTED]> wrote:

> > > The ls command show once, but pwd show twice.
> > > It seems to me that HISTCONTROL=ignoredups sometime work, sometime
> > > does not work.
> > > It does not work as I have hoped.
> > 
> > Probably you need to use HISTCONTROL=erasedups
> 
> In bash3 only.
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: (Partly solved)Re: why does the shell show commands foolishly when I press UP key?

2007-11-09 Thread CaT
On Fri, Nov 09, 2007 at 05:43:21AM -0800, Serena Cantor wrote:
> Are you kidding?

I think you meant: "Wow. Thanks. That does exactly what I need."

Or similar.

-- 
"To the extent that we overreact, we proffer the terrorists the
greatest tribute."
- High Court Judge Michael Kirby


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: (Partly solved)Re: why does the shell show commands foolishly when I press UP key?

2007-11-09 Thread dulev
> > The ls command show once, but pwd show twice.
> > It seems to me that HISTCONTROL=ignoredups sometime work, sometime
> > does not work.
> > It does not work as I have hoped.
> 
> Probably you need to use HISTCONTROL=erasedups

In bash3 only.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: (Partly solved)Re: why does the shell show commands foolishly when I press UP key?

2007-11-09 Thread Serena Cantor
Are you kidding?

--- Raj Kiran Grandhi <[EMAIL PROTECTED]> wrote:

> Serena Cantor wrote:
> > The ls command show once, but pwd show twice.
> > 
> > It seems to me that HISTCONTROL=ignoredups sometime work, sometime does not 
> > work.
> > 
> > It does not work as I have hoped.
> > 
> 
> Probably you need to use HISTCONTROL=erasedups
> 
> -- 
> Raj Kiran Grandhi
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: (Partly solved)Re: why does the shell show commands foolishly when I press UP key?

2007-11-09 Thread Raj Kiran Grandhi

Serena Cantor wrote:

The ls command show once, but pwd show twice.

It seems to me that HISTCONTROL=ignoredups sometime work, sometime does not 
work.

It does not work as I have hoped.



Probably you need to use HISTCONTROL=erasedups

--
Raj Kiran Grandhi


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: (Partly solved)Re: why does the shell show commands foolishly when I press UP key?

2007-11-09 Thread dulev
> The ls command show once, but pwd show twice.

Correct.

> It seems to me that HISTCONTROL=ignoredups sometime work, sometime does
> not work.

HISTCONTROL remove duplicate near-by commands only and it work always. :)

> It does not work as I have hoped.

Sorry.

> > Try:
> > 
> > pwd
> > cd
> > ls
> > ls
> > ls
> > pwd
> > 
> > then press UP and you will see difference.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]