[Bash-completion-devel] [bash-completion-Bugs][313111] Please add scilab completion support
bash-completion-bugs at alioth.debian.org
bash-completion-bugs at alioth.debian.org
Tue May 17 17:26:19 UTC 2011
Bugs item #313111, was changed at 2011-05-08 20:31 by Ville Skyttä
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=313111&group_id=100114
Status: Open
Priority: 3
Submitted By: Sylvestre Ledru (sylvestre)
Assigned to: Nobody (None)
Summary: Please add scilab completion support
Distribution: --Distribution-Agnostic--
Originally reported in: Debian BTS
Milestone: None
Status: None
Original bug number: 575527
Initial Comment:
Hello,
Could you review and apply the attached patch which adds the Scilab completion ?
Thanks
----------------------------------------------------------------------
>Comment By: Ville Skyttä (scop-guest)
Date: 2011-05-17 20:26
Message:
Potential and actual problems:
1) If the text in the license header is correct and the file is indeed part of Scilab, I see little reason to include it also as part of bash-completion especially because it doesn't seem to be using any bash-completion features except _filedir.
2) Even though I guess the CeCILL v2 license and the GPL v2+ of bash-completion are compatible, the license header seems to imply that we should be including the CeCILL v2 license text also with bash-completion. I think it'd be better if the file was licensed under GPL v2+ like the rest of bash-completion if it is to be included.
3) The file should be changed to use _init_completion, see current bash-completion git.
4) Current bash-completion git no longer defines $filenames. _filedir turns on -o filenames automatically when needed.
5) I don't think there's any reason to use grep with compgen -W, just use compgen -W "$options" -- "$cur"
6) There's no need to include upper and lowercase stuff in _filedir argument like the completion does, lowercase is enough.
7) Have you looked into using _parse_help or _parse_usage instead of hardcoding lists of available options?
8) "# List all options. Note that" -- note what?
----------------------------------------------------------------------
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=313111&group_id=100114
More information about the Bash-completion-devel
mailing list