Bugs item #311393, was changed at 2009-01-30 10:49 by Ville Skyttä You can respond by visiting: https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311393&group_id=100114
Status: Open Priority: 3 Submitted By: David Paleino (hanska-guest) Assigned to: Nobody (None) Summary: DBTS 501479: don't assume sed being GNU sed on Linux systems Distribution: None Originally reported in: Debian BTS Milestone: None Status: None Original bug number: 501479 Initial Comment: * bash-completion assumes that a uname of Linux implies that the "sed" command refers to GNU sed, while on other systems it aliases sed to "gsed" if present. While not possible on Debian, someone could easily make a Linux system with GNU sed installed as "gsed" and some other standards-compliant sed installed as "sed". Why bother having the check for Linux at all? Just always use "gsed" if present. Incidentally, bash-completion also leaves the alias sed=gsed in place if added, which seems like a surprising side-effect to occur due to sourcing bash-completion. ---------------------------------------------------------------------- >Comment By: Ville Skyttä (scop-guest) Date: 2009-05-29 22:50 Message: "unalias sed" is not the right thing to do. Completions stay around after the bash_completion file has been read and invoke "sed" a lot, and we need that sed to still be a GNU compatible one at runtime. The right thing to do would be to make sure bash_completion's sed usage is POSIX compliant and not use any GNU sed'isms and/or to convert stuff to use other as commonly available but more portable tools where applicable. That's quite a bit of work and more importantly, needs active testing (at least some of which we can hopefully make automatic in the nearish future). ---------------------------------------------------------------------- Comment By: Sung Pae (guns-guest) Date: 2009-05-29 08:53 Message: Yes this is annoying. Consider the BSDs! This really is as simple as adding 'unalias sed' at the bottom of the file. ---------------------------------------------------------------------- You can respond by visiting: https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311393&group_id=100114 _______________________________________________ Bash-completion-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel
