[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
- multi-line commands in the history get split when bash is quit, Slevin McGuigan, 2011/02/05
- Re: multi-line commands in the history get split when bash is quit,
Bob Proulx <=
- Re: multi-line commands in the history get split when bash is quit, Michael Witten, 2011/02/05
- Re: multi-line commands in the history get split when bash is quit, Jon Seymour, 2011/02/05
- Re: multi-line commands in the history get split when bash is quit, Michael Witten, 2011/02/05
- Re: multi-line commands in the history get split when bash is quit, Chris F.A. Johnson, 2011/02/05
- Re: multi-line commands in the history get split when bash is quit, Michael Witten, 2011/02/05
- Re: multi-line commands in the history get split when bash is quit, Michael Witten, 2011/02/05
- Re: multi-line commands in the history get split when bash is quit, Jon Seymour, 2011/02/05
- Re: multi-line commands in the history get split when bash is quit, Michael Witten, 2011/02/05
- Re: multi-line commands in the history get split when bash is quit, Jon Seymour, 2011/02/05
- Re: multi-line commands in the history get split when bash is quit, Michael Witten, 2011/02/05