[xmonad] Two dashes freeze shellPrompt

Brent Yorgey byorgey at seas.upenn.edu
Thu Aug 18 17:22:59 CEST 2011


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



More information about the xmonad mailing list