Re: bash completion mangles file names with newlines

2022-02-23 Thread Ian! D. Allen
On Wed, Feb 23, 2022 at 03:37:12PM -0500, Chet Ramey wrote: > As others have noted, bash-completion is a separate package. > But we might be able to figure out where it's not being appropriately > quoted if you enable `set -x' before attempting the completion. At > least

Re: bash completion mangles file names with newlines

2022-02-23 Thread Chet Ramey
On 2/23/22 11:34 AM, Ian! D. Allen wrote: > Bash Version: 5.0 > Patch Level: 17 > Release Status: release > > Description: > BASH completion cannot correctly handle file names containing newline > characters. As others have noted, bash-completion is a separate pack

Re: bash completion mangles file names with newlines

2022-02-23 Thread Kerin Millar
On Wed, 23 Feb 2022 11:34:52 -0500 "Ian! D. Allen" wrote: > # Now, load the completion scripts and watch it break: > bash-5.0$ source /usr/share/bash-completion/bash_completion Issues regarding completion scripts should be reported to their respective author

Re: bash completion mangles file names with newlines

2022-02-23 Thread Alex fxmbsw7 Ratchev
> Bash Version: 5.0 > Patch Level: 17 > Release Status: release > > Description: > BASH completion cannot correctly handle file names containing > newline characters. > > Repeat-By: > # First, get a shell with no completion loaded and show it working: >

Re: bash completion mangles file names with newlines

2022-02-23 Thread Alex fxmbsw7 Ratchev
Machine Type: x86_64-pc-linux-gnu > > Bash Version: 5.0 > Patch Level: 17 > Release Status: release > > Description: > BASH completion cannot correctly handle file names containing > newline characters. > > Repeat-By: > # First, get a shell with no

bash completion mangles file names with newlines

2022-02-23 Thread Ian! D. Allen
output: Linux ubuntu20-04 5.13.0-30-generic #33~20.04.1-Ubuntu SMP Mon Feb 7 14:25:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 5.0 Patch Level: 17 Release Status: release Description: BASH completion cannot correctly handle file names

Re: bash completion after a multiline string

2021-07-06 Thread Chet Ramey
On 7/2/21 2:13 AM, Phi Debian wrote: Thanx Chet for taking time to explain. May be readline API should have a way to know that a quote ['"`] is opened ine many previous lines and the first occurence of such quote ine the current one , is a closing one. There might be a way to do it using the

Re: bash completion after a multiline string

2021-07-01 Thread Phi Debian
Thanx Chet for taking time to explain. May be readline API should have a way to know that a quote ['"`] is opened ine many previous lines and the first occurence of such quote ine the current one , is a closing one. Well I guess this is too much of a trouble for something living this way for such

Re: bash completion after a multiline string

2021-06-29 Thread Chet Ramey
On 6/22/21 3:52 AM, Phi Debian wrote: When doing $ echo foo "bar" /tm I got /tm expanded to /tmp/ that is indeed correct. But if I do $ echo foo "bar more bar" /tm No completion is done. My question is doest this behavior a feature or a bug? Neither, really, it's just a consequence of rea

Re: bash completion after a multiline string

2021-06-22 Thread Phi Debian
May be posting a link is not appropriate so I cut/paste it here I bumped into this problem regarding bash completion, can't find reference to it. When doing $ echo foo "bar" /tm I got /tm expanded to /tmp/ that is indeed correct. But if I do $ echo foo "bar more bar&qu

bash completion after a multiline string

2021-06-21 Thread Phi Debian
Hi All, I posted a question to STKO and someone suggest I should open a 'feature request' here. https://stackoverflow.com/questions/68065039/bash-completion-after-a-multiline-string Thanx in advance, Phi

Re: Update link to bash-completion (github)

2019-04-21 Thread Дилян Палаузов
Hello Chet, it turns out, that https://salsa.debian.org/debian/bash-completion is copied from https://github.com/scop/bash-completion/ , so please include the latter in the documentation. Regards Дилян On Fri, 2019-04-12 at 15:32 -0400, Chet Ramey wrote: > On 4/11/19 6:00 PM, Ди

Re: Update link to bash-completion (debian)

2019-04-12 Thread Chet Ramey
On 4/11/19 6:00 PM, Дилян Палаузов wrote: > Hello, > > as alioth.debian.or is down, replace at > https://www.gnu.org/software/bash/manual/html_node/A-Programmable-Completion-Example.html > the reference from http://bash-completion.alioth.debian.org/ to > https://salsa.debi

Update link to bash-completion (debian)

2019-04-11 Thread Дилян Палаузов
Hello, as alioth.debian.or is down, replace at https://www.gnu.org/software/bash/manual/html_node/A-Programmable-Completion-Example.html the reference from http://bash-completion.alioth.debian.org/ to https://salsa.debian.org/debian/bash-completion . Regards Дилян

Re: bash completion of an option with a space in it, isn't double quoted

2019-03-26 Thread Chet Ramey
On 3/26/19 3:43 AM, d3fault wrote: > Bash Version: 4.4 > Patch Level: 12 > Release Status: release > > Description: > In the following example it auto-completes without putting double > quotes around "hi mom", which means a process would see it as 2 > separate args instead of 1. If you wan

bash completion of an option with a space in it, isn't double quoted

2019-03-26 Thread d3fault
From: d3fault To: bug-bash@gnu.org,b...@packages.debian.org Subject: bash completion of an option with a space in it, isn't double quoted Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM=

Re: How to apply Bash completion usefully and more practically

2018-02-26 Thread Chet Ramey
On 2/25/18 5:01 AM, Budi wrote: > How to apply Bash completion in more useful way. > If TAB key is pressed Bash just show a list of corresponding command, I > thought it will scroll over all corresponding command on which the cursor > of shell prompt is active. (just like traditional

How to apply Bash completion usefully and more practically

2018-02-25 Thread Budi
How to apply Bash completion in more useful way. If TAB key is pressed Bash just show a list of corresponding command, I thought it will scroll over all corresponding command on which the cursor of shell prompt is active. (just like traditional Windows cmd prompt) How to make it able to perform

Re: bash completion crash

2018-02-21 Thread Chet Ramey
On 2/20/18 3:15 PM, Justin Pryzby wrote: > Bash Version: 4.1 > Patch Level: 2 > Release Status: release > > Description: > SIGABRT during readline completion. > > Repeat-By: > Unable to reproduce It's likely that this has been fixed in the eight years since bash-4.1 was released

bash completion crash

2018-02-20 Thread Justin Pryzby
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-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale'

get bash completion output programatically

2017-02-20 Thread acornejo
The title says it all. Example: get_completion "git a" > add > am > annotate > apply > archive get_completion "ls --a" > --all > --almost-all > --author There are various attempts to do it online, the most complete seems to be: https://brbsix.github.io/2015/11/29/accessing-tab-completion-progr

Re: Bash completion sometimes meshes up my terminal

2016-08-23 Thread Chet Ramey
On 8/22/16 9:43 AM, Jaro Punta wrote: > I am not sure this is a bug but I cannot find an explanation why this > happens. Sometimes when I execute certain commands, and I press the > Tab key while I am typing the command, then after the commands > finishes, the terminal is left in a abnormal state (

Bash completion sometimes meshes up my terminal

2016-08-22 Thread Jaro Punta
I am not sure this is a bug but I cannot find an explanation why this happens. Sometimes when I execute certain commands, and I press the Tab key while I am typing the command, then after the commands finishes, the terminal is left in a abnormal state (e.g. terminal echo is off). This seems to happ

Re: bash completion escaping bug

2015-08-25 Thread Chet Ramey
have this: > db.rc \$home/Downloads/games/DOS/Captain\ Bible\ in\ the\ Dome\ of\ > Darkness.zip > Notice the dollar sign which is now erroneously escaped (home is a variable). This is a case for which you need to enable the `direxpand' option. You've presented the bash co

Re: bash completion escaping bug

2015-08-25 Thread Neven Sajko
> for example I have this in shell input: > db.rc $home/Downloads/games/DOS/Captai > and after I press Tab I have this: > db.rc \$home/Downloads/games/DOS/Captain\ Bible\ in\ the\ Dome\ of\ > Darkness.zip Sorry, the completed command line was wrapped: db.rc \$home/Downloads/games/DOS/Captain\

bash completion escaping bug

2015-08-24 Thread Neven Sajko
Hi, I use bash 4.3.039 and there is a bug (not necessarily a recent regression) with its file name completion feature. for example I have this in shell input: db.rc $home/Downloads/games/DOS/Captai and after I press Tab I have this: db.rc \$home/Downloads/games/DOS/Captain\ Bible\ in\ the\ Dom

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Hanno Böck
On Fri, 10 Jul 2015 16:33:34 -0400 Chet Ramey wrote: > Perfect, thanks. Try the attached patch. Yep, fixes the bug. Thanks! -- Hanno Böck http://hboeck.de/ mail/jabber: ha...@hboeck.de GPG: BBB51E42 pgp7AW88NhmiX.pgp Description: OpenPGP digital signature

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/10/15 4:15 PM, Hanno Böck wrote: > On Fri, 10 Jul 2015 16:00:25 -0400 > Chet Ramey wrote: > >> That helps, but they are strings, so can you print the string >> values? I'm interested in reproducing this instead of just guessing >> and not being

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Hanno Böck
On Fri, 10 Jul 2015 16:00:25 -0400 Chet Ramey wrote: > That helps, but they are strings, so can you print the string > values? I'm interested in reproducing this instead of just guessing > and not being able to fix it at an appropriately high level. Thanks. pathname / x */ temp / -- Hanno Bö

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/10/15 3:42 PM, Hanno Böck wrote: > On Fri, 10 Jul 2015 15:34:02 -0400 > Chet Ramey wrote: > >>> Here's the asan message on 4.4 alpha: >>> ==5999==ERROR: AddressSanitizer: heap-buffer-overflow on address >>> 0x602000 >> 002d6f at pc 0x5ca2b8 bp 0

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Hanno Böck
On Fri, 10 Jul 2015 15:34:02 -0400 Chet Ramey wrote: > > Here's the asan message on 4.4 alpha: > > ==5999==ERROR: AddressSanitizer: heap-buffer-overflow on address > > 0x602000 > 002d6f at pc 0x5ca2b8 bp 0x7fffc9d75240 sp 0x7fffc9d75230 > > READ of size 1 at 0x60202d6f thread T0 > > #0 0x

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/10/15 2:38 PM, Hanno Böck wrote: > Hi Chet, > > On Fri, 10 Jul 2015 14:23:25 -0400 > Chet Ramey wrote: > >>> To reproduce: >>> a) compile bash with CFLAGS="-fsanitize=address -g" >>> b) type in a=/ a >>> c) go back with the cursor behind the ba

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Hanno Böck
On Fri, 10 Jul 2015 14:41:04 -0400 Chet Ramey wrote: > On 7/10/15 2:38 PM, Hanno Böck wrote: > > On Fri, 10 Jul 2015 14:23:25 -0400 > > Chet Ramey wrote: > > > >>> To reproduce: > >>> a) compile bash with CFLAGS="-fsanitize=address -g" > >>> b) type in a=/ a > >>> c) go back with the cursor beh

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/10/15 2:38 PM, Hanno Böck wrote: > Hi Chet, > > On Fri, 10 Jul 2015 14:23:25 -0400 > Chet Ramey wrote: > >>> To reproduce: >>> a) compile bash with CFLAGS="-fsanitize=address -g" >>> b) type in a=/ a >>> c) go back with the cursor behind the ba

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Hanno Böck
Hi Chet, On Fri, 10 Jul 2015 14:23:25 -0400 Chet Ramey wrote: > > To reproduce: > > a) compile bash with CFLAGS="-fsanitize=address -g" > > b) type in a=/ a > > c) go back with the cursor behind the backslash and press tab > > Thanks for the report. I've attached a patch that should address th

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/6/15 6:46 PM, Hanno Böck wrote: > Hi, > > With Address Sanitizer I discovered another out of bounds read issue in > bash. This is different from the issue I recently reported here and > for which Chet already provided a patch: > https://lists.gnu

Another out of bounds heap read in bash completion

2015-07-06 Thread Hanno Böck
Hi, With Address Sanitizer I discovered another out of bounds read issue in bash. This is different from the issue I recently reported here and for which Chet already provided a patch: https://lists.gnu.org/archive/html/bug-bash/2015-06/msg00089.html To reproduce: a) compile bash with CFLAGS="-fs

Re: Red-Hat Bug 825751 - bash-completion fails on environment variables

2012-06-08 Thread Roman Rakus
ard this discussion, I thought -- it's a matter of preference, though I think I prefer expansion, I could see times when it might be a hassle (if the var was a REAL long expansion, it might overflow the line)...but having it not work at all... That's not useful for anyone. And to be complete,

Re: Red-Hat Bug 825751 - bash-completion fails on environment variables

2012-06-07 Thread Linda Walsh
Eric Blake wrote: On 06/07/2012 03:22 PM, Linda Walsh wrote: This isn't a matter of preference... its a real bug. Ex: $ ls $HOME/bin "ls: cannot access $HOME/bin: No such file or directory" Yes, we know. Ergo patch 29: According to the the referred to discussion on this issu

Re: Red-Hat Bug 825751 - bash-completion fails on environment variables

2012-06-07 Thread Eric Blake
On 06/07/2012 03:22 PM, Linda Walsh wrote: > This isn't a matter of preference... its a real bug. > > Ex: > $ ls $HOME/bin > "ls: cannot access $HOME/bin: No such file or directory" Yes, we know. Ergo patch 29: https://lists.gnu.org/archive/html/bug-bash/2012-05/msg00148.html -- Eric Blake

Re: Red-Hat Bug 825751 - bash-completion fails on environment variables

2012-06-07 Thread Linda Walsh
Clark WANG wrote: On Mon, May 28, 2012 at 11:32 PM, John E. Malmberg wrote: Actual results: ls \$HOME/ Already discussed for quite a few times. :) For example: http://lists.gnu.org/archive/html/bug-bash/2011-12/msg00079.html (patched attached) http://lists.gnu.org/archive/html/bug-bash/201

Re: Red-Hat Bug 825751 - bash-completion fails on environment variables

2012-05-30 Thread DJ Mills
On Tue, May 29, 2012 at 8:34 AM, John E. Malmberg wrote: > > On this platform, file names with $ in them tend to show up as they have > special meaning. > > BASH-4.2$ echo *\$* > GNV$BASH.DSF GNV$BASH.EXE GNV$BASH.MAP GNV$SHELL.C_FIRST GNV$VERSION.C_FIRST > gnv$bash_startup.com gnv$main_wrapper gn

Re: Red-Hat Bug 825751 - bash-completion fails on environment variables

2012-05-29 Thread Chet Ramey
On 5/29/12 8:34 AM, John E. Malmberg wrote: > In the discussion that you referenced earlier, it mentions that it was > considered making this behavior controlled by a settable parameter. > > Is that implemented with this patch? > > Is this eventually going to be part of an official patch? Yes a

Re: Red-Hat Bug 825751 - bash-completion fails on environment variables

2012-05-29 Thread John E. Malmberg
On 5/29/2012 7:12 AM, Chet Ramey wrote: On 5/28/12 11:32 AM, John E. Malmberg wrote: https://bugzilla.redhat.com/show_bug.cgi?id=825751 bash-4.2.24-1.fc16.i686 Please take a look at http://git.savannah.gnu.org/cgit/bash.git/log/?h=direxpand and see if that behaves the way you like. Thanks,

Re: Red-Hat Bug 825751 - bash-completion fails on environment variables

2012-05-29 Thread Chet Ramey
On 5/28/12 11:32 AM, John E. Malmberg wrote: > https://bugzilla.redhat.com/show_bug.cgi?id=825751 > > bash-4.2.24-1.fc16.i686 Please take a look at http://git.savannah.gnu.org/cgit/bash.git/log/?h=direxpand and see if that behaves the way you like. Chet -- ``The lyf so short, the craft so long

Re: Red-Hat Bug 825751 - bash-completion fails on environment variables

2012-05-28 Thread Clark WANG
On Mon, May 28, 2012 at 11:32 PM, John E. Malmberg wrote: > https://bugzilla.redhat.com/show_bug.cgi?id=825751 > > bash-4.2.24-1.fc16.i686 > > Steps to Reproduce: > 1. Activate a terminal running a bash shell > 2. ls $HOME/ > 3. > > Actual results: > ls \$HOME/ Already discussed for quite a few t

Red-Hat Bug 825751 - bash-completion fails on environment variables

2012-05-28 Thread John E. Malmberg
https://bugzilla.redhat.com/show_bug.cgi?id=825751 bash-4.2.24-1.fc16.i686 Steps to Reproduce: 1. Activate a terminal running a bash shell 2. ls $HOME/ 3. Actual results: ls \$HOME/ I get the directory get expanded result on Bash 1.4.8 (VMS special build) and on Bash 3.2.25(1)-release. Rega

bash completion issue

2012-04-02 Thread João M . S . Silva
Hi, I don't know if this is a know issue. It probably is, because I'm not a bash-completion long-time user: $ tar Jxvf pkg/mpfr-3.1.0.tar.xz -C -srbash: compgen: -r: invalid option compgen: usage: compgen [-abcdefgjksuv] [-o option] [-A action] [-G globpat] [-W wordlist] [-F fun

Re: bash-completion between do and done

2011-11-05 Thread Bob Proulx
Chris F.A. Johnson wrote: >I can confirm it on 3.05b, 3.0 and 4.2: > > while [ ${n:=0} -lt 5 ] > do > se > > All I get is a beep. Hmm... It is still completing. But not command completion. It is doing filename completion instead of command completion. It is out of sync with the current

Re: bash-completion between do and done

2011-11-05 Thread Chris F.A. Johnson
On Sat, 5 Nov 2011, Bob Proulx wrote: Peng Yu wrote: Current, bash doesn't do command completion between do and done (for loop). I'm wondering if this feature can be added. Of course bash does do command completion between do and done. Can you give an exact example test case? On what versio

Re: bash-completion between do and done

2011-11-04 Thread Bob Proulx
Peng Yu wrote: > Current, bash doesn't do command completion between do and done (for loop). > I'm wondering if this feature can be added. Of course bash does do command completion between do and done. Can you give an exact example test case? On what version of bash? Bob

bash-completion between do and done

2011-11-04 Thread Peng Yu
Hi, Current, bash doesn't do command completion between do and done (for loop). I'm wondering if this feature can be added. -- Regards, Peng

Re: bash completion

2011-08-09 Thread jonathan MERCIER
Le mardi 09 août 2011 à 10:05 +0800, Clark J. Wang a écrit : > On Sun, Aug 7, 2011 at 11:35 PM, jonathan MERCIER > wrote: > I have a bash completion file (see below) > It works fine, but i would like add a feature => not expand > the flag by >

Re: bash completion

2011-08-08 Thread Clark J. Wang
On Sun, Aug 7, 2011 at 11:35 PM, jonathan MERCIER wrote: > I have a bash completion file (see below) > It works fine, but i would like add a feature => not expand the flag by > a space when it contain '=' > curently when i do: > $ ldc2 -Df > ldc2 -Df=⊔ > i

bash completion

2011-08-07 Thread jonathan MERCIER
I have a bash completion file (see below) It works fine, but i would like add a feature => not expand the flag by a space when it contain '=' curently when i do: $ ldc2 -Df ldc2 -Df=⊔ i would like: ldc2 -Df ldc2 -Df= without space tanks a lot --- # bash completion

Re: No Color for Bash Completion Results

2011-02-05 Thread Roger
> On Sat, Feb 05, 2011 at 01:58:39PM -0600, Dennis Williamson wrote: >On Sat, Feb 5, 2011 at 1:35 PM, Roger wrote: >> When using bash completion on files within local folder, ie. "$ ls f" >> showing results for files starting with char "f" -- or any char(

Re: No Color for Bash Completion Results

2011-02-05 Thread Dennis Williamson
On Sat, Feb 5, 2011 at 1:35 PM, Roger wrote: > When using bash completion on files within local folder, ie. "$ ls f" > showing results for files starting with char "f" -- or any char(s) you may > specify, results are not provided in color when bash, terminal and

No Color for Bash Completion Results

2011-02-05 Thread Roger
When using bash completion on files within local folder, ie. "$ ls f" showing results for files starting with char "f" -- or any char(s) you may specify, results are not provided in color when bash, terminal and ls are configured for using color. I do believe, results for bash

More hooks in bash completion

2009-11-13 Thread gibboris
Hello, I'm trying to figure out how to get more of the readline granularity in the bash completion process. First of all I would like to fprintf to rl_outstream before display_matches and from what I saw readline defines a rl_completion_display_matches_hook which doesn't seem used by bas

Mac OS X Unicode NFD filesystems and bash completion

2009-07-14 Thread Guillaume Outters
Configuration Information [Automatically generated, do not change]: Machine: powerpc OS: darwin8.11.0 Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc' - DCONF_OSTYPE='darwin8.11.0' -DCONF_MACHTYPE='powerpc-apple- darwin8.11.0' -DCONF_VENDOR='apple' -DLOCALEDIR='/usr/

bash completion fail whit command mount

2009-06-01 Thread Rafael Tabernero
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: x86_64-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/

Re: Fwd: Problem with bash completion

2008-03-17 Thread Chet Ramey
Eric Blake wrote: This was originally reported on the cygwin lists; it is still present in stock bash 3.2.33. This has already been fixed for the next version. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. No day but today. Chet Ramey

Re: Fwd: Problem with bash completion

2008-03-15 Thread Jan Schampera
Chris F.A. Johnson wrote: >> bash-3.2$ ./x/ < tab after x now adds slash >> >> Once the shell starts doing this, it keeps doing it. Restarting bash >> solves the problem. > >I don't see that problem, and I'm using the same version of >bash. I can reproduce it, s

Re: Fwd: Problem with bash completion

2008-03-14 Thread Chris F.A. Johnson
On 2008-03-13, Eric Blake wrote: > > This was originally reported on the cygwin lists; it is still present in > stock bash 3.2.33. > > - - > > From: David Rothenberger > Subject: Problem with bash completion > > Sometimes bash gets confused and starts adding a sl

Fwd: Problem with bash completion

2008-03-12 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This was originally reported on the cygwin lists; it is still present in stock bash 3.2.33. - - From: David Rothenberger Subject: Problem with bash completion Sometimes bash gets confused and starts adding a slash at the end of files when I do

BASH completion problem

2007-08-03 Thread arnuld
i use Arch GNU/Linux and BASH is my login shell. i have also installed "bash_completion" package but sometimes BASH tab-completion works and sometimes not. most of the times the BASH tab-completion doe snot work and just throws the frustrating beep on me (form my cabinet). at the same time ZSH has

Re: bash completion bug with 'cd'

2006-10-30 Thread Benjamin Rutt
n the method: > > _cd() > { > local IFS=$'\t\n' cur=${COMP_WORDS[COMP_CWORD]} i j k > [...] > } I should mention I posted here since my mail to Ian, the bash completion maintainer, bounced. Anyone knows how to reach him? -- Benjamin Rutt __

bash completion bug with 'cd'

2006-10-29 Thread Benjamin Rutt
I have an animated gif that shows the bug. If you browse to: http://bmi.osu.edu/~rutt/bashcompletion.gif it will show how e.g. cd $HOM will expand to cd \$HOME I think this is a bug in the method: _cd() { local IFS=$'\t\n' cur=${COMP_WORDS[COMP_CWORD]} i j k [...] } My version is

Re: How to affect the completion order of bash completion?

2006-10-23 Thread Chet Ramey
> First I did this: complete -W "p3 p2 p1" mycommand > > Then I of course tested it by typing: mycommand p > > Now when I push tab button it offers first "p1", then "p2" .. in > "alpabetical" > order. However it would be nice if I could make complete to honor the order > in the word list. >

How to affect the completion order of bash completion?

2006-10-23 Thread Markus Vuori
Hi, I have a problem with bash programmable completion. First I did this: complete -W "p3 p2 p1" mycommand Then I of course tested it by typing: mycommand p Now when I push tab button it offers first "p1", then "p2" .. in "alpabetical" order. However it would be nice if I could make complete

Re: Bash completion buggy if -o nospace, -o filenames and -W used together.

2005-08-28 Thread Chet Ramey
> -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -O2 -march=i586 > -mcpu=i686 -fmessage-length=0 -Wall -g -D_GNU_SOURCE -Wall -pipe -g > -fbranch-probabilities > uname output: Linux cboltz 2.6.11.4-21.7-default #1 Thu Jun 2 14:23:14 > UTC 2005 i686 i686 i386 GNU/Linu

Bash completion buggy if -o nospace, -o filenames and -W used together.

2005-08-18 Thread Christian Boltz
cpu=i686 -fmessage-length=0 -Wall -g -D_GNU_SOURCE -Wall -pipe -g -fbranch-probabilities uname output: Linux cboltz 2.6.11.4-21.7-default #1 Thu Jun 2 14:23:14 UTC 2005 i686 i686 i386 GNU/Linux Machine Type: i586-suse-linux Bash Version: 3.0 Patch Level: 16 Release Status: release Description: Bash c

Re: Bash completion in Cygwin

2005-08-14 Thread Gary Fritz
> Why not just add a mount for C: as /c? > > That's what I did, so now I can move around with ease, with the same > number of characters to have to type as c: Hm, yes that is a nice alternate solution. Thanks for the idea! ___ Bug-bash mailing list B

Re: Bash completion in Cygwin

2005-08-12 Thread J. David Boyd
Gary Fritz <[EMAIL PROTECTED]> writes: > In > http://groups- > beta.google.com/group/gnu.bash.bug/browse_thread/thread/e0dc6716afe8162d/df > a06fd85db708e1 > a bug was reported that prevented TAB completion from working properly in > Cygwin when the "c:/" synonym for "/cygdrive/c" was used. Beca

Re: Bash completion in Cygwin

2005-08-12 Thread Gary Fritz
Chet Ramey <[EMAIL PROTECTED]> wrote: > The fix, available in the current release of bash, is to modify the > contents of the COMP_WORDBREAKS variable to remove the `:'. Outstanding!! Exactly what I needed. Thanks! Gary ___ Bug-bash mailing list Bug

Re: Bash completion in Cygwin

2005-08-12 Thread Chet Ramey
Gary Fritz wrote: > In > http://groups- > beta.google.com/group/gnu.bash.bug/browse_thread/thread/e0dc6716afe8162d/df > a06fd85db708e1 > a bug was reported that prevented TAB completion from working properly in > Cygwin when the "c:/" synonym for "/cygdrive/c" was used. Because ":" is > consider

Bash completion in Cygwin

2005-08-12 Thread Gary Fritz
In http://groups- beta.google.com/group/gnu.bash.bug/browse_thread/thread/e0dc6716afe8162d/df a06fd85db708e1 a bug was reported that prevented TAB completion from working properly in Cygwin when the "c:/" synonym for "/cygdrive/c" was used. Because ":" is considered whitespace for completion for