bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multi-line commands in the history get split when bash is quit


From: Bob Proulx
Subject: Re: multi-line commands in the history get split when bash is quit
Date: Sat, 5 Feb 2011 16:51:17 -0700
User-agent: Mutt/1.5.20 (2009-06-14)

Slevin McGuigan wrote:
> I am unsure whether or not this a bug. Anyhow, it is pretty annoying...
> 
> I use simple multi-line scripts very often in bash and use vi mode
> to edit them. By using
> # shopt -s cmdhist
> # shopt -s lithist
> I can achive multi-line editing. Which is fine.
> 
> But this ability "breaks" as soon as I close bash and open it again.
> 
> Is this a bug?
> Are there suggestions for workarounds?

Are you thinking that setting shopts should in some way be persistent
across program invocations?  That would be pretty annoying and a
severe bug if it did.

Are you forgetting to put your desired configuration into ~/.bashrc
where it is loaded when bash starts?

Are you forgetting to put
  source "$HOME/.bashrc"
into your ~/.bash_profile where it will source your .bashrc when you
log into your account?

Bob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]