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

compgen and filenames

2008-03-12 Thread Jonas Diemer
Hello, I am trying to improve the bash_completions for mercurial. For a specific command (hg add), I want to show only files eligible for addition as completions. The command "hg status -nu" lists such files, so what I do is this: local files="$("$hg" status -n$1 . 2>/dev/null)" local IFS=$'\

Re: Possible eval builtin speedup?

2008-03-12 Thread Chet Ramey
> > > What is the role of xmbsrtowcs? Why doesn't mbsrtowcs convert 0x5c to > > U<0x5c>? > > > > > > I see. I assume that it's a bug in mbsrtowcs. (If you check, xmbsrtowcs > > isn't used anywhere, so the question is moot.) > > Ok. But I suppose that the role of xdupmbsrtowcs is to avoid the

Re: Possible eval builtin speedup?

2008-03-12 Thread Nicolas
> > What is the role of xmbsrtowcs? Why doesn't mbsrtowcs convert 0x5c to > U<0x5c>? > > > I see. I assume that it's a bug in mbsrtowcs. (If you check, xmbsrtowcs > isn't used anywhere, so the question is moot.) Ok. But I suppose that the role of xdupmbsrtowcs is to avoid the same bug, am I r