
18 Aug
2011
18 Aug
'11
11:22 a.m.
On Thu, Aug 18, 2011 at 11:02:51AM +0200, Dunric wrote:
Hi,
just took a peek into XMonad.Prompt.Shell source and found the cause of dysfunction. To get a list of possible command completions, shellPrompt makes use of bash internal function "compgen" but end of options mark (yes, it is the double-dash) is omitted. So if completion function is supplied with "--", bash call cannot finish because compgen expects another argument which never receives so it hangs.
+ f <- fmap lines $ runProcessWithInput "bash" [] ("compgen -A file --" ++ encodeString s ++ "\n")
Does there not need to be a space between the -- and the rest of the arguments? -Brent