[Bash-completion-devel] Bug#497597: bash-completion: gdb argument completions returns error

David Paleino d.paleino at gmail.com
Sat Sep 6 21:27:52 UTC 2008


On Sat, 6 Sep 2008 14:02:40 -0700, Kevin Mitchell wrote:

> It seems to do the same thing. I tried picking things apart a little
> more this time by just entering parts of the gdb entry in the shell.
> Now I'm really confused:
> 
> $ IFS=":"
> $ path_array=( $(echo "$PATH") )
> $ IFS=$'\n'
> $ find "${path_array[@]}" . -mindepth 1 -maxdepth 1 -not -type d
> -executable -printf "%f\\n" > /dev/null
> find: cannot search `': No such file or directory

I can't reproduce all this, sorry.

$ IFS=":"
$ path_array=( $(echo "$PATH") )
$ IFS=$'\n'
$ find "${path_array[@]}" . -mindepth 1 -maxdepth 1 -not -type d -executable \
> -printf "%f\\n" > /dev/null
$

Could this be a find(1) bug? But, well, it should happen here as well.
Do you have any "strange" configuration? LVM, ...?

> $ echo find "${path_array[@]}" . -mindepth 1 -maxdepth 1 -not -type d
> -executable -printf "%f\\n"

find /home/neo/bin /usr/local/bin /usr/bin /bin /usr/games /home/neo/bin /sbin /usr/sbin /usr/local/sbin /home/neo/bin /sbin /usr/sbin /usr/local/sbin .
-mindepth 1 -maxdepth 1 -not -type d -executable -printf %f\n

> $ find  /home/kevmitch/bin /usr/local/bin /usr/bin /bin /usr/games .
> -mindepth 1 -maxdepth 1 -not -type d -executable -printf %f\n >
> /dev/null
  $

Ok, the same result I had above.

> $ wtf?
> bash: wtf?: command not found

Oh, well :)

> $ ls -l /bin/sh
> lrwxrwxrwx 1 root root 4 2008-08-21 14:44 /bin/sh -> bash

$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 16 mag 14:53 /bin/sh -> bash

> $ apt-cache policy findutils
> findutils:
>   Installed: 4.4.0-2
>   Candidate: 4.4.0-2
>   Version table:
>  *** 4.4.0-2 0
>         500 http://debian.yorku.ca testing/main Packages
>         600 http://debian.yorku.ca unstable/main Packages
>         100 /var/lib/dpkg/status
>      4.2.28-1etch1 0
>         400 http://debian.yorku.ca stable/main Packages

$ LANG=C apt-cache policy findutils
findutils:
  Installed: 4.4.0-2
  Candidate: 4.4.0-2
  Version table:
 *** 4.4.0-2 0
        500 http://ftp.de.debian.org unstable/main Packages
        100 /var/lib/dpkg/status
$


I can't really see anything different, apart from the very first part I quoted.

Are you sure you aren't typing any strange-non-printable character? :)

David

-- 
 . ''`.  Debian maintainer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://snipr.com/qa_page
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20080906/45e22e69/attachment-0003.pgp 


More information about the Bash-completion-devel mailing list