Re: [PATCH] added -- in autocd

2015-04-28 Thread Ángel González
On Tue, 2015-04-28 at 21:27 +0200, isabella parakiss wrote: > I'm sorry, I added a link to a pastebin in my previous message but > it's not available anymore. > Anyway, this was the content (posted by Score_Under in #bash): > > I think -- should enter said directory. > I hope it's ok... It may

bash --debugger on a script with no arguments

2015-04-28 Thread Rocky Bernstein
It's come to my attention that running bash --debugger doesn't source DEBUGGER_START_FILE when the script to be debugged isn't followed by any arguments. An example will probably make this clear. Suppose */tmp/foo.sh* is: echo hi And you run: bash --debugger /tmp/foo.sh I get "hi" prin

Re: [PATCH] added -- in autocd

2015-04-28 Thread Chet Ramey
On 4/28/15 2:44 PM, isabella parakiss wrote: > --- > execute_cmd.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/execute_cmd.c b/execute_cmd.c > index e3aa37f..51c29c6 100644 > --- a/execute_cmd.c > +++ b/execute_cmd.c > @@ -4283,6 +4283,7 @@ run_builtin: > >if (autocd && interact

"autocd" shell option breaks on dir names beginning with hyphen

2015-04-28 Thread Charles Daffern
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/locale'

Re: [PATCH] added -- in autocd

2015-04-28 Thread isabella parakiss
On 4/28/15, Eric Blake wrote: > On 04/28/2015 12:44 PM, isabella parakiss wrote: >> --- > > Might have been nice to leave a comment why you propose this change. It > looks like it is needed for the case when autocd mode is on and you type > the name of a directory that starts with '-', where the

Re: [PATCH] added -- in autocd

2015-04-28 Thread Eric Blake
On 04/28/2015 12:44 PM, isabella parakiss wrote: > --- Might have been nice to leave a comment why you propose this change. It looks like it is needed for the case when autocd mode is on and you type the name of a directory that starts with '-', where the cd command needs to interpret the argumen

[PATCH] added -- in autocd

2015-04-28 Thread isabella parakiss
--- execute_cmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/execute_cmd.c b/execute_cmd.c index e3aa37f..51c29c6 100644 --- a/execute_cmd.c +++ b/execute_cmd.c @@ -4283,6 +4283,7 @@ run_builtin: if (autocd && interactive && words->word && is_dirname (words->word->word)) { +

Re: PROMPT_COMMAND causing strange cursor behavior

2015-04-28 Thread Martin Sebor
On 04/28/2015 08:26 AM, Chet Ramey wrote: On 4/27/15 1:26 PM, Martin Sebor wrote: Bash Version: 4.3 Patch Level: 33 Release Status: release Description: When the PROMPT_COMMAND variable is set to a command such a printf it causes the cursor to jump to disappear or jump to the wrong positions w

Re: PROMPT_COMMAND causing strange cursor behavior

2015-04-28 Thread Chet Ramey
On 4/27/15 1:26 PM, Martin Sebor wrote: > Bash Version: 4.3 > Patch Level: 33 > Release Status: release > > Description: > When the PROMPT_COMMAND variable is set to a command such a printf > it causes the cursor to jump to disappear or jump to the wrong > positions when typing text that spans mo