[Bash-completion-devel] [bash-completion-Bugs][314725] nullglob does not work when failglob is enabled

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Thu Jun 12 19:49:40 UTC 2014


bash-completion-Bugs item #314725, was opened at 12/06/2014 21:49 by Dams Nadé
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=314725&group_id=100114

Status: Open
Priority: 3
Submitted By: Dams Nadé (anvil-guest)
Assigned to: Nobody (None)
Summary: nullglob does not work when failglob is enabled 
Distribution: --Distribution-Agnostic--
Originally reported in: None
Milestone: None
Status: None
Original bug number: 


Initial Comment:
The _services and _xinetd_services are a bit broken when failglob is enabled. 

1. failglob has actually a bigger priority than nullglob, so failglob prevents nullglob to happen. We should disable and restore failglob when enabling/restoring nullglob.
and 
2. the "printf" statements in the array assignements create another step of glob + word splitting to happen, they should be removed.

See attached patches. They should prevent chkconfig completion from failing under some circumstances, like when no xinetd services are installed.

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=314725&group_id=100114



More information about the Bash-completion-devel mailing list