From 6170eb0001510426ccc7461e60e46c68992bcd14 Mon Sep 17 00:00:00 2001 From: David Paleino Date: Fri, 5 Jun 2009 08:13:46 +0200 Subject: [PATCH] Don't assume "sed" being GNU sed, use "gsed" whenever available (Debian: #501479, Alioth: #311393) --- CHANGES | 2 ++ bash_completion | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 153c756a..df99934d 100644 --- a/CHANGES +++ b/CHANGES @@ -11,6 +11,8 @@ bash-completion (1.x) * Fix typo in .ass subtitles completion for mplayer (Debian: #531337) * Fix regression on man(1) completion: also complete on local .3pm files (Debian: #531343) + * Don't assume "sed" being GNU sed, use "gsed" whenever available + (Debian: #501479, Alioth: #311393) [ Ville Skyttä ] * Split yum and yum-arch completion into contrib/yum. diff --git a/bash_completion b/bash_completion index d6bdfdbc..15e9b34f 100644 --- a/bash_completion +++ b/bash_completion @@ -195,7 +195,7 @@ have() # use GNU sed if we have it, since its extensions are still used in our code # -[ $USERLAND != GNU ] && have gsed && alias sed=gsed +have gsed && alias sed=gsed # This function checks whether a given readline variable # is `on'. @@ -3673,3 +3673,6 @@ unset UNAME USERLAND default dirnames filenames have nospace bashdefault plusdir set $BASH_COMPLETION_ORIGINAL_V_VALUE unset BASH_COMPLETION_ORIGINAL_V_VALUE + +# remove aliases we set earlier +unalias sed