customized completion function problem

2010-06-11 Thread Юрий Пухальский
I've a customized svn completion implemented like this:

complete -o nospace -F svncomp svn
svncomp()
{
local last dp path=${COMP_WORDS[$COMP_CWORD]}

case $path in
*/) dp="$path";;
*) dp=$(dirname "$path")/; last=$(basename "$path");;
esac

case "$(eval echo $path)" in
svn+ssh://*)
COMPREPLY=( $(compgen -P $dp -C "svn ls $dp" -- "$last" 2>&-) );;
*)
COMPREPLY=( $(compgen -f -- "$path") );;
esac
}

And when i try to complete svn URI, completion command seems to have
problems with gathering the output (probably some sort of timeout,
because only lexicographically first entries are displayed?). In the
following log i just press Tab several times getting different
completion lists.

devfe:~>echo $BASH_VERSION
4.1.0(1)-release
devfe:~>echo $SVN
svn+ssh://s...@svn/SVFE
devfe:~>svn ls $SVN/svfe_
$SVN/svfe_1/$SVN/svfe_abg/  $SVN/svfe_arf/
$SVN/svfe_2/$SVN/svfe_aby/
devfe:~>svn ls $SVN/svfe_
$SVN/svfe_1/$SVN/svfe_2/$SVN/svfe_abg/
devfe:~>svn ls $SVN/svfe_
$SVN/svfe_1/$SVN/svfe_2/$SVN/svfe_abg/  $SVN/svfe_aby/
devfe:~>svn ls $SVN/svfe_
$SVN/svfe_1/$SVN/svfe_2/$SVN/svfe_abg/
devfe:~>svn ls $SVN/svfe_
$SVN/svfe_1/$SVN/svfe_2/$SVN/svfe_abg/  $SVN/svfe_aby/
devfe:~>svn ls $SVN/svfe_
$SVN/svfe_1/$SVN/svfe_2/$SVN/svfe_abg/
devfe:~>svn ls $SVN/svfe_
$SVN/svfe_1/$SVN/svfe_2/$SVN/svfe_abg/  $SVN/svfe_aby/
devfe:~>svn ls $SVN/svfe_
$SVN/svfe_1/$SVN/svfe_2/$SVN/svfe_abg/

Full list being:
devfe:~/unf0109>svn ls $SVN/
svfe_1/
svfe_2/
svfe_abg/
svfe_aby/
svfe_arf/
svfe_avf/
svfe_baf/
svfe_bcf/
svfe_bkf/
svfe_btf/
svfe_cuf/
svfe_dcf/
svfe_dgf/
svfe_gpb/
svfe_nets/
svfe_ruf/
svfe_sbc/
svfe_shf/
svfe_taf/
svfe_uif/
svfe_uzf/
svfe_vaf/
svfe_vef/

-- 
«The good thing about standards is there are so many to choose from.»



WHEN EXEC OR MAKE , DLD.SO REPORTED UNSATISFIED CODE SYMBOL 'PTHREAD_CREATE' IN 'LIBINTL.SO'

2010-06-11 Thread kenichiro ochi

From: kenichiro.o...@oracle.com
To: bug-bash@gnu.org
Subject: WHEN EXEC OR MAKE , DLD.SO REPORTED UNSATISFIED CODE SYMBOL 
'PTHREAD_CREATE' IN 'LIBINTL.SO'


Configuration Information [Automatically generated, do not change]:
Machine: ia64
OS: hpux11.23
Compiler: cc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='ia64' 
-DCONF_OSTYPE='hpux11.23' -DCONF_MACHTYPE='ia64-hp-hpux11.2
3' -DCONF_VENDOR='hp' -DLOCALEDIR='/usr/local/share/locale' 
-DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -DHPUX   -I.  -I. -

I./include -I./lib   -O -I/usr/local/include -D_XOPEN_SOURCE_EXTENDED
uname output: HP-UX jphp31fa B.11.23 U ia64 1380664940 unlimited-user 
license

Machine Type: ia64-hp-hpux11.23

Bash Version: 4.1
Patch Level: 7
Release Status: release

Description:
First, I installed following binary repot, to use bash.
 + termcap-1.3.1-ia64-11.23.depot
 + libiconv-1.13.1-ia64-11.23.depot
 + gettext-0.18.1.1-ia64-11.23.depot
 + make-3.81-ia64-11.23.depot
 + bash-4.1.007-ia64-11.23.depot

Although bash was installed cleanly, the following error occured.
 /usr/lib/hpux32/dld.so: Unsatisfied code symbol 'pthread_create'
 in load module '/usr/local/lib/hpux32/libintl.so'.

Next, I tried to compile bash from source code.
 ./configure
 gmake
During executing gmake, the following same error occured.
 ar cr libbuiltins.a builtins.o alias.o bind.o break.o 
builtin.o caller.o cd.o colon.o command.o common.o declar
 e.o echo.o enable.o eval.o evalfile.o evalstring.o exec.o 
exit.o fc.o fg_bg.o hash.o help.o history.o jobs.o ki
 ll.o let.o mapfile.o pushd.o read.o return.o set.o setattr.o 
shift.o source.o suspend.o test.o times.o trap.o t
 ype.o ulimit.o umask.o wait.o getopts.o shopt.o printf.o 
getopt.o bashgetopt.o complete.o
 /usr/lib/hpux32/dld.so: Unsatisfied code symbol 
'pthread_create' in load module '/usr/local/lib/hpux32/libintl.

 so'.
 gmake[1]: *** [libbuiltins.a] Killed
 gmake[1]: Leaving directory `/tmp/bash-4.1.007/builtins'
 gmake: *** [builtins/libbuiltins.a] Error 1

Would you advice me regarding this error, and provide any action
plans?

Repeat-By:
This is 100% reproducibility in my environment.
Only execute bash from depot or make from source code.