Re: compgen and filenames

2008-03-17 Thread Chet Ramey
Jonas Diemer wrote: I have already tried the "-o filenames" option to compgen, with no success. Is what I want at all possible with the current bash (I used GNU bash, version 3.2.25(1)-release (i486-pc-linux-gnu) from KUbuntu 7.10)? If not, can you fix it (e.g. by improving the "-o filename

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=$'\