pulseaudio: fix dependencies for openssl-3
[oi-userland.git] / components / shell / bash-completion / patches / 01-use-gnu-grep-sed.patch
blobd13b6ac904f9a40ecad1d33da6a84a04c1fc9cc5
1 Result of following commands:
3 cp -a bash-completion-2.14.0 bash-completion-2.14.0.old
5 find bash-completion-2.14.0/completions/ -type f -exec sed -i 's/ grep / ggrep /g' {} \;
6 find bash-completion-2.14.0/completions/ -type f -exec sed -i 's/ sed / gsed /g' {} \;
8 find bash-completion-2.14.0/bash_completion -type f -exec sed -i 's/ grep / ggrep /g' {} \;
9 find bash-completion-2.14.0/bash_completion -type f -exec sed -i 's/ sed / gsed /g' {} \;
11 gdiff -pruN bash-completion-2.14.0.old bash-completion-2.14.0 | less
13 And check the result.
14 diff -pruN bash-completion-2.14.0.old/bash_completion bash-completion-2.14.0/bash_completion
15 --- bash-completion-2.14.0.old/bash_completion 2024-05-09 10:40:56.000000000 +0200
16 +++ bash-completion-2.14.0/bash_completion 2024-06-16 21:23:04.908232895 +0200
17 @@ -1627,7 +1627,7 @@ _comp_compgen_mac_addresses()
18 _comp_compgen -v addresses split -- "$(
20 LC_ALL=C ifconfig -a || ip -c=never link show || ip link show
21 - } 2>/dev/null | command sed -ne \
22 + } 2>/dev/null | command gsed -ne \
23 "s/.*[[:space:]]HWaddr[[:space:]]\{1,\}\($_re\)[[:space:]].*/\1/p" -ne \
24 "s/.*[[:space:]]HWaddr[[:space:]]\{1,\}\($_re\)[[:space:]]*$/\1/p" -ne \
25 "s|.*[[:space:]]\(link/\)\{0,1\}ether[[:space:]]\{1,\}\($_re\)[[:space:]].*|\2|p" -ne \
26 @@ -1638,13 +1638,13 @@ _comp_compgen_mac_addresses()
27 _comp_compgen -av addresses split -- "$(
29 arp -an || ip -c=never neigh show || ip neigh show
30 - } 2>/dev/null | command sed -ne \
31 + } 2>/dev/null | command gsed -ne \
32 "s/.*[[:space:]]\($_re\)[[:space:]].*/\1/p" -ne \
33 "s/.*[[:space:]]\($_re\)[[:space:]]*$/\1/p"
36 # /etc/ethers
37 - _comp_compgen -av addresses split -- "$(command sed -ne \
38 + _comp_compgen -av addresses split -- "$(command gsed -ne \
39 "s/^[[:space:]]*\($_re\)[[:space:]].*/\1/p" /etc/ethers 2>/dev/null)"
41 _comp_compgen -U addresses ltrim_colon "${addresses[@]}"
42 @@ -1659,22 +1659,22 @@ _comp_compgen_configured_interfaces()
43 if [[ -f /etc/debian_version ]]; then
44 # Debian system
45 _comp_expand_glob files '/etc/network/interfaces /etc/network/interfaces.d/*' || return 0
46 - _comp_compgen -U files split -- "$(command sed -ne \
47 + _comp_compgen -U files split -- "$(command gsed -ne \
48 's|^iface \([^ ]\{1,\}\).*$|\1|p' "${files[@]}" 2>/dev/null)"
49 elif [[ -f /etc/SuSE-release ]]; then
50 # SuSE system
51 _comp_expand_glob files '/etc/sysconfig/network/ifcfg-*' || return 0
52 _comp_compgen -U files split -- "$(printf '%s\n' "${files[@]}" |
53 - command sed -ne 's|.*ifcfg-\([^*].*\)$|\1|p')"
54 + command gsed -ne 's|.*ifcfg-\([^*].*\)$|\1|p')"
55 elif [[ -f /etc/pld-release ]]; then
56 # PLD Linux
57 _comp_compgen -U files split -- "$(command ls -B /etc/sysconfig/interfaces |
58 - command sed -ne 's|.*ifcfg-\([^*].*\)$|\1|p')"
59 + command gsed -ne 's|.*ifcfg-\([^*].*\)$|\1|p')"
60 else
61 # Assume Red Hat
62 _comp_expand_glob files '/etc/sysconfig/network-scripts/ifcfg-*' || return 0
63 _comp_compgen -U files split -- "$(printf '%s\n' "${files[@]}" |
64 - command sed -ne 's|.*ifcfg-\([^*].*\)$|\1|p')"
65 + command gsed -ne 's|.*ifcfg-\([^*].*\)$|\1|p')"
69 @@ -1699,7 +1699,7 @@ _comp_compgen_ip_addresses()
70 _comp_compgen -v addrs split -- "$({
71 LC_ALL=C ifconfig -a || ip -c=never addr show || ip addr show
72 } 2>/dev/null |
73 - command sed -e 's/[[:space:]]addr:/ /' -ne \
74 + command gsed -e 's/[[:space:]]addr:/ /' -ne \
75 "s|.*inet${_n}[[:space:]]\{1,\}\([^[:space:]/]*\).*|\1|p")" ||
76 return
78 @@ -1840,17 +1840,17 @@ if [[ $OSTYPE == *@(solaris|aix)* ]]; th
79 # This function completes on process IDs.
80 _comp_compgen_pids()
82 - _comp_compgen_split -- "$(command ps -efo pid | command sed 1d)"
83 + _comp_compgen_split -- "$(command ps -efo pid | command gsed 1d)"
86 _comp_compgen_pgids()
88 - _comp_compgen_split -- "$(command ps -efo pgid | command sed 1d)"
89 + _comp_compgen_split -- "$(command ps -efo pgid | command gsed 1d)"
91 _comp_compgen_pnames()
93 _comp_compgen_split -X '<defunct>' -- "$(command ps -efo comm |
94 - command sed -e 1d -e 's:.*/::' -e 's/^-//' | sort -u)"
95 + command gsed -e 1d -e 's:.*/::' -e 's/^-//' | sort -u)"
97 else
98 _comp_compgen_pids()
99 @@ -1866,7 +1866,7 @@ else
101 local -a procs=()
102 if [[ ${1-} == -s ]]; then
103 - _comp_split procs "$(command ps ax -o comm | command sed -e 1d)"
104 + _comp_split procs "$(command ps ax -o comm | command gsed -e 1d)"
105 else
106 # Some versions of ps don't support "command", but do "comm", e.g.
107 # some busybox ones. Fall back
108 @@ -2008,7 +2008,7 @@ _comp_complete_service()
109 else
110 local sysvdirs
111 _comp_sysvdirs || return 1
112 - _comp_compgen_split -l -- "$(command sed -e 'y/|/ /' \
113 + _comp_compgen_split -l -- "$(command gsed -e 'y/|/ /' \
114 -ne 's/^.*\(U\|msg_u\)sage.*{\(.*\)}.*$/\2/p' \
115 "${sysvdirs[0]}/${prev##*/}" 2>/dev/null) start stop"
117 @@ -2038,7 +2038,7 @@ _comp_compgen_kernel_modules()
119 local _modpath=/lib/modules/$1
120 _comp_compgen_split -- "$(command ls -RL "$_modpath" 2>/dev/null |
121 - command sed -ne 's/^\(.*\)\.k\{0,1\}o\(\.[gx]z\)\{0,1\}$/\1/p' \
122 + command gsed -ne 's/^\(.*\)\.k\{0,1\}o\(\.[gx]z\)\{0,1\}$/\1/p' \
123 -e 's/^\(.*\)\.ko\.zst$/\1/p')"
126 @@ -2354,7 +2354,7 @@ _comp_compgen_dvd_devices()
127 _comp_compgen_terms()
129 _comp_compgen_split -- "$({
130 - command sed -ne 's/^\([^[:space:]#|]\{2,\}\)|.*/\1/p' /etc/termcap
131 + command gsed -ne 's/^\([^[:space:]#|]\{2,\}\)|.*/\1/p' /etc/termcap
133 toe -a || toe
134 } | _comp_awk '{ print $1 }'
135 @@ -2369,7 +2369,7 @@ _comp_try_faketty()
137 if type unbuffer &>/dev/null; then
138 unbuffer -p "$@"
139 - elif script --version 2>&1 | command grep -qF util-linux; then
140 + elif script --version 2>&1 | command ggrep -qF util-linux; then
141 # BSD and Solaris "script" do not seem to have required features
142 script -qaefc "$*" /dev/null
143 else
144 @@ -2450,7 +2450,7 @@ _comp__included_ssh_config_files()
145 # https://github.com/openssh/openssh-portable/blob/5ec5504f1d328d5bfa64280cd617c3efec4f78f3/readconf.c#L2240
146 local max_depth=16
147 while ((${#included[@]} > 0 && depth++ < max_depth)); do
148 - _comp_split include_files "$(command sed -ne 's/^[[:blank:]]*[Ii][Nn][Cc][Ll][Uu][Dd][Ee][[:blank:]]\(.*\)$/\1/p' "${included[@]}")" || return
149 + _comp_split include_files "$(command gsed -ne 's/^[[:blank:]]*[Ii][Nn][Cc][Ll][Uu][Dd][Ee][[:blank:]]\(.*\)$/\1/p' "${included[@]}")" || return
150 included=()
151 for i in "${include_files[@]}"; do
152 if [[ $i != [~/]* ]]; then
153 @@ -2648,7 +2648,7 @@ _comp_compgen_known_hosts__impl()
154 # append any available aliases from ssh config files
155 if [[ ${#config[@]} -gt 0 && $aliases ]]; then
156 local -a hosts
157 - if _comp_split hosts "$(command sed -ne 's/^[[:blank:]]*[Hh][Oo][Ss][Tt][[:blank:]=]\{1,\}\(.*\)$/\1/p' "${config[@]}")"; then
158 + if _comp_split hosts "$(command gsed -ne 's/^[[:blank:]]*[Hh][Oo][Ss][Tt][[:blank:]=]\{1,\}\(.*\)$/\1/p' "${config[@]}")"; then
159 _comp_compgen -av known_hosts -- -P "$prefix" \
160 -S "$suffix" -W '"${hosts[@]%%[*?%]*}"' -X '@(\!*|)'
162 @@ -2957,7 +2957,7 @@ _comp_complete_longopt()
163 return
165 --+([-a-z0-9_]))
166 - local argtype=$(LC_ALL=C $1 --help 2>&1 | command sed -ne \
167 + local argtype=$(LC_ALL=C $1 --help 2>&1 | command gsed -ne \
168 "s|.*$prev\[\{0,1\}=[<[]\{0,1\}\([-A-Za-z0-9_]\{1,\}\).*|\1|p")
169 case ${argtype,,} in
170 *dir*)
171 @@ -2992,9 +2992,9 @@ _comp_complete_longopt()
172 complete -F _comp_complete_longopt \
173 a2ps awk base64 bash bc bison cat chroot colordiff cp \
174 csplit cut date df diff dir du enscript expand fmt fold gperf \
175 - grep grub head irb ld ldd less ln ls m4 mkdir mkfifo mknod \
176 + ggrep grub head irb ld ldd less ln ls m4 mkdir mkfifo mknod \
177 mv netstat nl nm objcopy objdump od paste pr ptx readelf rm rmdir \
178 - sed seq shar sort split strip sum tac tail tee \
179 + gsed seq shar sort split strip sum tac tail tee \
180 texindex touch tr uname unexpand uniq units vdir wc who
182 # @since 2.12
183 diff -pruN bash-completion-2.14.0.old/completions/_adb bash-completion-2.14.0/completions/_adb
184 --- bash-completion-2.14.0.old/completions/_adb 2024-05-09 10:40:56.000000000 +0200
185 +++ bash-completion-2.14.0/completions/_adb 2024-06-16 21:23:04.531727246 +0200
186 @@ -6,7 +6,7 @@
187 _comp_cmd_adb__command_usage()
189 _comp_compgen_help - <<<"$("$1" help 2>&1 |
190 - command sed -e "/^ *\(adb \)\{0,1\} *$2 /!d;s/[]|[]/\n/g")"
191 + command gsed -e "/^ *\(adb \)\{0,1\} *$2 /!d;s/[]|[]/\n/g")"
194 _comp_cmd_adb()
195 @@ -57,7 +57,7 @@ _comp_cmd_adb()
197 forward)
198 _comp_compgen_help - <<<"$("$1" help 2>&1 |
199 - command sed -ne "s/^ *adb *forward *-/-/p")"
200 + command gsed -ne "s/^ *adb *forward *-/-/p")"
202 reboot)
203 _comp_compgen -- -W 'bootloader recovery'
204 diff -pruN bash-completion-2.14.0.old/completions/_mock bash-completion-2.14.0/completions/_mock
205 --- bash-completion-2.14.0.old/completions/_mock 2024-05-09 10:40:56.000000000 +0200
206 +++ bash-completion-2.14.0/completions/_mock 2024-06-16 21:23:04.731668354 +0200
207 @@ -47,7 +47,7 @@ _comp_cmd_mock()
208 # (e.g. ix86 chroot builds in x86_64 mock host)
209 # This would actually depend on what the target root
210 # can be used to build for...
211 - _comp_compgen_split -- "$(command rpm --showrc | command sed -ne \
212 + _comp_compgen_split -- "$(command rpm --showrc | command gsed -ne \
213 "s/^[[:space:]]*${regex_header}[[:space:]]*:[[:space:]]*\(.*\)/\1/p")"
214 return
216 diff -pruN bash-completion-2.14.0.old/completions/_modules bash-completion-2.14.0/completions/_modules
217 --- bash-completion-2.14.0.old/completions/_modules 2024-05-09 10:40:56.000000000 +0200
218 +++ bash-completion-2.14.0/completions/_modules 2024-06-16 21:23:04.803218150 +0200
219 @@ -23,13 +23,13 @@
221 _comp_cmd_module__compgen_list()
223 - local modules="$(command sed 's/:/ /g' <<<"$LOADEDMODULES" | sort)"
224 + local modules="$(command gsed 's/:/ /g' <<<"$LOADEDMODULES" | sort)"
225 _comp_compgen -- -W "$modules"
228 _comp_cmd_module__compgen_path()
230 - local modules="$(command sed 's/:/ /g' <<<"$MODULEPATH" | sort)"
231 + local modules="$(command gsed 's/:/ /g' <<<"$MODULEPATH" | sort)"
232 _comp_compgen -- -W "$modules"
235 @@ -37,8 +37,8 @@ _comp_cmd_module__compgen_avail()
237 local modules="$(
238 module avail 2>&1 |
239 - command grep -E -v '^(-|$)' |
240 - xargs printf '%s\n' | command sed -e 's/(default)//g' | sort
241 + command ggrep -E -v '^(-|$)' |
242 + xargs printf '%s\n' | command gsed -e 's/(default)//g' | sort
244 _comp_compgen -- -W "$modules"
246 @@ -53,8 +53,8 @@ _comp_cmd_module()
247 # First parameter on line -- we expect it to be a mode selection
249 local options
250 - options="$(module help 2>&1 | command grep -E '^[[:space:]]*\+' |
251 - _comp_awk '{print $2}' | command sed -e 's/|/ /g' | sort)"
252 + options="$(module help 2>&1 | command ggrep -E '^[[:space:]]*\+' |
253 + _comp_awk '{print $2}' | command gsed -e 's/|/ /g' | sort)"
255 _comp_compgen -- -W "$options"
257 diff -pruN bash-completion-2.14.0.old/completions/_mount bash-completion-2.14.0/completions/_mount
258 --- bash-completion-2.14.0.old/completions/_mount 2024-05-09 10:40:56.000000000 +0200
259 +++ bash-completion-2.14.0/completions/_mount 2024-06-16 21:23:04.742552584 +0200
260 @@ -46,8 +46,8 @@ _comp_cmd_mount()
261 if [[ $host ]]; then
262 _comp_compgen -c "${cur#//"$host"}" split -P "//$host" -- "$(
263 smbclient -d 0 -NL "$host" 2>/dev/null |
264 - command sed -ne '/^[[:blank:]]*Sharename/,/^$/p' |
265 - command sed -ne '3,$s|^[^A-Za-z]*\([^[:blank:]]*\).*$|/\1|p'
266 + command gsed -ne '/^[[:blank:]]*Sharename/,/^$/p' |
267 + command gsed -ne '3,$s|^[^A-Za-z]*\([^[:blank:]]*\).*$|/\1|p'
270 elif [[ -r /etc/vfstab ]]; then
271 diff -pruN bash-completion-2.14.0.old/completions/_mount.linux bash-completion-2.14.0/completions/_mount.linux
272 --- bash-completion-2.14.0.old/completions/_mount.linux 2024-05-09 10:40:56.000000000 +0200
273 +++ bash-completion-2.14.0/completions/_mount.linux 2024-06-16 21:23:04.566905388 +0200
274 @@ -238,8 +238,8 @@ _comp_cmd_mount()
275 if [[ $host ]]; then
276 _comp_compgen -c "${cur#//"$host"}" split -P "//$host" -- "$(
277 smbclient -d 0 -NL "$host" 2>/dev/null |
278 - command sed -ne '/^[[:blank:]]*Sharename/,/^$/p' |
279 - command sed -ne '3,$s|^[^A-Za-z]*\([^[:blank:]]*\).*$|/\1|p'
280 + command gsed -ne '/^[[:blank:]]*Sharename/,/^$/p' |
281 + command gsed -ne '3,$s|^[^A-Za-z]*\([^[:blank:]]*\).*$|/\1|p'
285 diff -pruN bash-completion-2.14.0.old/completions/_nox bash-completion-2.14.0/completions/_nox
286 --- bash-completion-2.14.0.old/completions/_nox 2024-05-09 10:40:56.000000000 +0200
287 +++ bash-completion-2.14.0/completions/_nox 2024-06-16 21:23:04.387820715 +0200
288 @@ -4,7 +4,7 @@
289 # This serves as a fallback in case the completion is not installed otherwise.
291 eval -- "$(
292 - pathcmd=$(type -P -- "$1" 2>/dev/null | command sed 's,/[^/]*$,,')
293 + pathcmd=$(type -P -- "$1" 2>/dev/null | command gsed 's,/[^/]*$,,')
294 [[ $pathcmd ]] && PATH=$pathcmd${PATH:+:$PATH}
295 register-python-argcomplete --shell bash "$1" 2>/dev/null ||
296 register-python-argcomplete3 --shell bash "$1" 2>/dev/null
297 diff -pruN bash-completion-2.14.0.old/completions/_yum bash-completion-2.14.0/completions/_yum
298 --- bash-completion-2.14.0.old/completions/_yum 2024-05-09 10:40:56.000000000 +0200
299 +++ bash-completion-2.14.0/completions/_yum 2024-06-16 21:23:04.532819704 +0200
300 @@ -9,12 +9,12 @@ _comp_cmd_yum__list()
301 # Try to strip in between headings like "Available Packages"
302 # This will obviously only work for English :P
303 _comp_split COMPREPLY "$(yum -d 0 -C list "$1" "$cur*" 2>/dev/null |
304 - command sed -ne '/^Available /d' -e '/^Installed /d' \
305 + command gsed -ne '/^Available /d' -e '/^Installed /d' \
306 -e '/^Updated /d' -e 's/[[:space:]].*//p')"
307 else
308 # Drop first line (e.g. "Updated Packages")
309 _comp_split COMPREPLY "$(yum -d 0 -C list "$1" "$cur*" 2>/dev/null |
310 - command sed -ne 1d -e 's/[[:space:]].*//p')"
311 + command gsed -ne 1d -e 's/[[:space:]].*//p')"
315 @@ -25,7 +25,7 @@ _comp_cmd_yum__compgen_repolist()
316 # Drop first ("repo id repo name") and last ("repolist: ...") rows
317 _comp_compgen_split -- "$(
318 yum --noplugins -C repolist "$1" 2>/dev/null |
319 - command sed -ne '/^repo[[:space:]]\{1,\}id/d' -e '/^repolist:/d' \
320 + command gsed -ne '/^repo[[:space:]]\{1,\}id/d' -e '/^repolist:/d' \
321 -e 's/[[:space:]].*//p'
324 @@ -36,7 +36,7 @@ _comp_cmd_yum__compgen_plugins()
325 _comp_expand_glob files '/usr/lib/yum-plugins/*.py{,c,o}' || return
326 _comp_compgen -U files split -- "$(
327 printf '%s\n' "${files[@]}" |
328 - command sed -ne 's|.*/\([^./]*\)\.py[co]\{0,1\}$|\1|p' | sort -u
329 + command gsed -ne 's|.*/\([^./]*\)\.py[co]\{0,1\}$|\1|p' | sort -u
333 diff -pruN bash-completion-2.14.0.old/completions/2to3 bash-completion-2.14.0/completions/2to3
334 --- bash-completion-2.14.0.old/completions/2to3 2024-05-09 10:40:56.000000000 +0200
335 +++ bash-completion-2.14.0/completions/2to3 2024-06-16 21:23:04.740409010 +0200
336 @@ -11,7 +11,7 @@ _comp_cmd_2to3()
338 -f | --fix | -x | --nofix)
339 _comp_compgen_split -- "$(
340 - "$1" --list-fixes 2>/dev/null | command sed -e 1d
341 + "$1" --list-fixes 2>/dev/null | command gsed -e 1d
343 return
345 diff -pruN bash-completion-2.14.0.old/completions/7z bash-completion-2.14.0/completions/7z
346 --- bash-completion-2.14.0.old/completions/7z 2024-05-09 10:40:56.000000000 +0200
347 +++ bash-completion-2.14.0/completions/7z 2024-06-16 21:23:04.798964615 +0200
348 @@ -102,7 +102,7 @@ _comp_cmd_7z()
349 else
350 if [[ ${words[1]} == d ]]; then
351 _comp_compgen_split -l -- "$(
352 - "$1" l "${words[2]}" -slt 2>/dev/null | command sed -n \
353 + "$1" l "${words[2]}" -slt 2>/dev/null | command gsed -n \
354 '/^Path =/s/^Path = \(.*\)$/\1/p' 2>/dev/null | tail -n+2
356 compopt -o filenames
357 diff -pruN bash-completion-2.14.0.old/completions/abook bash-completion-2.14.0/completions/abook
358 --- bash-completion-2.14.0.old/completions/abook 2024-05-09 10:40:56.000000000 +0200
359 +++ bash-completion-2.14.0/completions/abook 2024-06-16 21:23:04.720271147 +0200
360 @@ -23,11 +23,11 @@ _comp_cmd_abook()
361 case $prev in
362 --informat)
363 _comp_compgen_split -- "$("$1" --formats |
364 - command sed -n -e 's/^'$'\t''\([a-z]*\).*/\1/p' -e '/^$/q')"
365 + command gsed -n -e 's/^'$'\t''\([a-z]*\).*/\1/p' -e '/^$/q')"
367 --outformat)
368 _comp_compgen_split -- "$("$1" --formats |
369 - command sed -n -e '/^$/,$s/^'$'\t''\([a-z]*\).*/\1/p')"
370 + command gsed -n -e '/^$/,$s/^'$'\t''\([a-z]*\).*/\1/p')"
372 --infile)
373 _comp_compgen -- -W stdin
374 diff -pruN bash-completion-2.14.0.old/completions/alias bash-completion-2.14.0/completions/alias
375 --- bash-completion-2.14.0.old/completions/alias 2024-05-09 10:40:56.000000000 +0200
376 +++ bash-completion-2.14.0/completions/alias 2024-06-16 21:23:04.560498092 +0200
377 @@ -13,7 +13,7 @@ _comp_cmd_alias()
378 _comp_compgen -- -A alias
381 - COMPREPLY=("$(alias "${cur%=}" 2>/dev/null | command sed \
382 + COMPREPLY=("$(alias "${cur%=}" 2>/dev/null | command gsed \
383 -e 's|^alias '"$cur"'\(.*\)$|\1|')")
385 esac
386 diff -pruN bash-completion-2.14.0.old/completions/appdata-validate bash-completion-2.14.0/completions/appdata-validate
387 --- bash-completion-2.14.0.old/completions/appdata-validate 2024-05-09 10:40:56.000000000 +0200
388 +++ bash-completion-2.14.0/completions/appdata-validate 2024-06-16 21:23:04.887013390 +0200
389 @@ -10,7 +10,7 @@ _comp_cmd_appdata_validate()
390 return
392 --output-format)
393 - _comp_compgen_split -- "$("$1" --help | command sed -ne \
394 + _comp_compgen_split -- "$("$1" --help | command gsed -ne \
395 's/--output-format.*\[\(.*\)\]/\1/' -e 's/|/ /gp')"
396 return
398 diff -pruN bash-completion-2.14.0.old/completions/apt-get bash-completion-2.14.0/completions/apt-get
399 --- bash-completion-2.14.0.old/completions/apt-get 2024-05-09 10:40:56.000000000 +0200
400 +++ bash-completion-2.14.0/completions/apt-get 2024-06-16 21:23:04.458177191 +0200
401 @@ -80,7 +80,7 @@ _comp_cmd_apt_get()
402 # Prefer `apt-cache` in the same dir as command
403 local pathcmd
404 pathcmd=$(type -P -- "$1") && local PATH=${pathcmd%/*}:$PATH
405 - _comp_compgen_split -- "$(apt-cache policy | command sed -ne \
406 + _comp_compgen_split -- "$(apt-cache policy | command gsed -ne \
407 's/^ *release.*[ ,]o=\(Debian\|Ubuntu\),a=\(\w*\).*/\2/p')"
408 return
410 diff -pruN bash-completion-2.14.0.old/completions/aptitude bash-completion-2.14.0/completions/aptitude
411 --- bash-completion-2.14.0.old/completions/aptitude 2024-05-09 10:40:56.000000000 +0200
412 +++ bash-completion-2.14.0/completions/aptitude 2024-06-16 21:23:04.890210198 +0200
413 @@ -53,13 +53,13 @@ _comp_cmd_aptitude()
415 --target-release | --default-release | -${noargopts}t)
416 _comp_compgen_split -l -- "$(apt-cache policy |
417 - command sed -ne 's/.*release.o=Debian,a=\([_[:alnum:]]*\).*/\1/p')"
418 + command gsed -ne 's/.*release.o=Debian,a=\([_[:alnum:]]*\).*/\1/p')"
419 return
421 esac
423 if [[ $cur == -* ]]; then
424 - _comp_compgen -R help - <<<"$("$1" --help 2>&1 | command sed -e \
425 + _comp_compgen -R help - <<<"$("$1" --help 2>&1 | command gsed -e \
426 's/--with(out)-recommends/--without-recommends\n--with-recommends/')"
427 ((${#COMPREPLY[@]})) || return 0
429 diff -pruN bash-completion-2.14.0.old/completions/arp bash-completion-2.14.0/completions/arp
430 --- bash-completion-2.14.0.old/completions/arp 2024-05-09 10:40:56.000000000 +0200
431 +++ bash-completion-2.14.0/completions/arp 2024-06-16 21:23:04.796767308 +0200
432 @@ -37,7 +37,7 @@ _comp_cmd_arp()
433 _comp_count_args -a "@(--device|--protocol|--file|--hw-type|-${noargopts}[iApfHt])"
434 case $REPLY in
436 - local ips=$("$1" -an | command sed -ne \
437 + local ips=$("$1" -an | command gsed -ne \
438 's/.*(\([0-9]\{1,3\}\(\.[0-9]\{1,3\}\)\{3\}\)).*/\1/p')
439 _comp_compgen -- -W '$ips'
441 diff -pruN bash-completion-2.14.0.old/completions/beadm bash-completion-2.14.0/completions/beadm
442 --- bash-completion-2.14.0.old/completions/beadm 2020-01-11 19:58:32.000000000 +0100
443 +++ bash-completion-2.14.0/completions/beadm 2024-06-16 21:23:04.651139428 +0200
444 @@ -138,7 +138,7 @@ _beadm()
445 # entered BE name, so find snapshot for the particuler BE
446 if [[ "${prev}" != "rollback" ]]
447 then
448 - be_and_snapshots=( $(for K in echo "${!be_and_snapshots[@]}"; do echo ${be_and_snapshots[$K]} | grep "^${prev}@" | sed -e 's,.*@,,'; done) )
449 + be_and_snapshots=( $(for K in echo "${!be_and_snapshots[@]}"; do echo ${be_and_snapshots[$K]} | ggrep "^${prev}@" | gsed -e 's,.*@,,'; done) )
452 esac
453 @@ -188,7 +188,7 @@ _beadm()
454 local pprev="${COMP_WORDS[COMP_CWORD-2]}"
455 local realcur="${cur##*=}"
456 local zfsprop="${pprev%%@*}"; zfsprop="${zfsprop##*,}"
457 - local zfsvals=( $(zfs get 2>&1 | nawk '$1 == "'${zfsprop}'" && $2 == "YES" { $1=""; $2=""; $3=""; print }' | sed -e 's,|,,g') )
458 + local zfsvals=( $(zfs get 2>&1 | nawk '$1 == "'${zfsprop}'" && $2 == "YES" { $1=""; $2=""; $3=""; print }' | gsed -e 's,|,,g') )
459 compopt -o nospace
460 compopt -o nosort
461 COMPREPLY=( $(compgen -W "${zfsvals[*]}" -- "${realcur}") )
462 @@ -206,7 +206,7 @@ _beadm()
463 # ZFS property values
464 local realcur=${cur##*=}
465 local zfsprop=${prev%%@*}; zfsprop=${zfsprop##*,}
466 - local zfsvals=( $(zfs get 2>&1 | nawk '$1 == "'${zfsprop}'" && $2 == "YES" { $1=""; $2=""; $3=""; print }' | sed -e 's,|,,g') )
467 + local zfsvals=( $(zfs get 2>&1 | nawk '$1 == "'${zfsprop}'" && $2 == "YES" { $1=""; $2=""; $3=""; print }' | gsed -e 's,|,,g') )
468 compopt -o nospace
469 compopt -o nosort
470 COMPREPLY=( $(compgen -W "${zfsvals[*]}" -- "${realcur}") )
471 diff -pruN bash-completion-2.14.0.old/completions/carton bash-completion-2.14.0/completions/carton
472 --- bash-completion-2.14.0.old/completions/carton 2024-05-09 10:40:56.000000000 +0200
473 +++ bash-completion-2.14.0/completions/carton 2024-06-16 21:23:04.402797356 +0200
474 @@ -3,7 +3,7 @@
475 _comp_cmd_carton__commands()
477 local cmds=$("$1" usage 2>&1 |
478 - command sed -ne '/.*command.* is one of/{n;p;q;}')
479 + command gsed -ne '/.*command.* is one of/{n;p;q;}')
480 _comp_compgen -aF $' \t\n,' -- -W "$cmds"
483 diff -pruN bash-completion-2.14.0.old/completions/ccze bash-completion-2.14.0/completions/ccze
484 --- bash-completion-2.14.0.old/completions/ccze 2024-05-09 10:40:56.000000000 +0200
485 +++ bash-completion-2.14.0/completions/ccze 2024-06-16 21:23:04.343062923 +0200
486 @@ -30,7 +30,7 @@ _comp_cmd_ccze()
488 --plugin | -${noargopts}p)
489 _comp_compgen_split -- "$("$1" --list-plugins | command \
490 - sed -ne 's/^\([a-z0-9]\{1,\}\)[[:space:]]\{1,\}|.*/\1/p')"
491 + gsed -ne 's/^\([a-z0-9]\{1,\}\)[[:space:]]\{1,\}|.*/\1/p')"
492 return
494 esac
495 diff -pruN bash-completion-2.14.0.old/completions/cfrun bash-completion-2.14.0/completions/cfrun
496 --- bash-completion-2.14.0.old/completions/cfrun 2024-05-09 10:40:56.000000000 +0200
497 +++ bash-completion-2.14.0/completions/cfrun 2024-06-16 21:23:04.524385517 +0200
498 @@ -33,7 +33,7 @@ _comp_cmd_cfrun()
499 done
500 [[ ! -f $hostfile ]] && return
502 - _comp_compgen_split -- "$(command grep -v -E '(=|^$|^#)' \
503 + _comp_compgen_split -- "$(command ggrep -v -E '(=|^$|^#)' \
504 "$hostfile")"
507 diff -pruN bash-completion-2.14.0.old/completions/checksec bash-completion-2.14.0/completions/checksec
508 --- bash-completion-2.14.0.old/completions/checksec 2024-05-09 10:40:56.000000000 +0200
509 +++ bash-completion-2.14.0/completions/checksec 2024-06-16 21:23:04.719225962 +0200
510 @@ -27,11 +27,11 @@ _comp_cmd_checksec()
512 --format)
513 _comp_compgen_split -- "$("$1" --help 2>/dev/null |
514 - command sed -ne 's/[{,}]/ /g;s/^[[:space:]]*--format=//p')"
515 + command gsed -ne 's/[{,}]/ /g;s/^[[:space:]]*--format=//p')"
517 --output)
518 _comp_compgen_split -- "$("$1" --help 2>/dev/null |
519 - command sed -ne 's/[{,}]/ /g;s/^[[:space:]]*--output=//p')"
520 + command gsed -ne 's/[{,}]/ /g;s/^[[:space:]]*--output=//p')"
522 esac
524 diff -pruN bash-completion-2.14.0.old/completions/complete bash-completion-2.14.0/completions/complete
525 --- bash-completion-2.14.0.old/completions/complete 2024-05-09 10:40:56.000000000 +0200
526 +++ bash-completion-2.14.0/completions/complete 2024-06-16 21:23:04.762805300 +0200
527 @@ -29,7 +29,7 @@ _comp_cmd_complete()
528 return
530 -*p | -*r)
531 - _comp_compgen_split -l -- "$(complete -p | command sed -e 's|.* ||')"
532 + _comp_compgen_split -l -- "$(complete -p | command gsed -e 's|.* ||')"
533 return
535 esac
536 diff -pruN bash-completion-2.14.0.old/completions/configure bash-completion-2.14.0/completions/configure
537 --- bash-completion-2.14.0.old/completions/configure 2024-05-09 10:40:56.000000000 +0200
538 +++ bash-completion-2.14.0/completions/configure 2024-06-16 21:23:04.395298926 +0200
539 @@ -33,7 +33,7 @@ _comp_cmd_configure()
540 if [[ ${BASH_COMPLETION_CMD_CONFIGURE_HINTS-} ]]; then
541 _comp_compgen_split -- "$("$1" --help 2>&1 |
542 _comp_awk '/^ --[A-Za-z]/ { print $1; \
543 - if ($2 ~ /--[A-Za-z]/) print $2 }' | command sed -e 's/[[,].*//g')"
544 + if ($2 ~ /--[A-Za-z]/) print $2 }' | command gsed -e 's/[[,].*//g')"
545 [[ ${COMPREPLY-} == *=* ]] && compopt -o nospace
546 else
547 _comp_compgen_help
548 diff -pruN bash-completion-2.14.0.old/completions/cpan2dist bash-completion-2.14.0/completions/cpan2dist
549 --- bash-completion-2.14.0.old/completions/cpan2dist 2024-05-09 10:40:56.000000000 +0200
550 +++ bash-completion-2.14.0/completions/cpan2dist 2024-06-16 21:23:04.459220493 +0200
551 @@ -29,7 +29,7 @@ _comp_cmd_cpan2dist()
552 done
553 [[ $packagelist ]] && _comp_split COMPREPLY "$(zgrep "^${cur//-/::}" \
554 "$packagelist" 2>/dev/null | _comp_awk '{print $1}' |
555 - command sed -e 's/::/-/g')"
556 + command gsed -e 's/::/-/g')"
558 } &&
559 complete -F _comp_cmd_cpan2dist -o default cpan2dist
560 diff -pruN bash-completion-2.14.0.old/completions/curl bash-completion-2.14.0/completions/curl
561 --- bash-completion-2.14.0.old/completions/curl 2024-05-09 10:40:56.000000000 +0200
562 +++ bash-completion-2.14.0/completions/curl 2024-06-16 21:23:04.346256944 +0200
563 @@ -79,7 +79,7 @@ _comp_cmd_curl()
564 --engine)
565 local engines=$(
566 "$1" --engine list 2>/dev/null |
567 - command grep "^[[:space:]]"
568 + command ggrep "^[[:space:]]"
570 _comp_compgen -- -W '$engines list'
571 return
572 @@ -128,7 +128,7 @@ _comp_cmd_curl()
573 return
575 --proto-default)
576 - _comp_compgen_split "$("$1" --version 2>/dev/null | command sed -e '/Protocols/!d' -e 's/Protocols://')"
577 + _comp_compgen_split "$("$1" --version 2>/dev/null | command gsed -e '/Protocols/!d' -e 's/Protocols://')"
579 --pubkey)
580 _comp_compgen -x ssh identityfile pub
581 diff -pruN bash-completion-2.14.0.old/completions/cvs bash-completion-2.14.0/completions/cvs
582 --- bash-completion-2.14.0.old/completions/cvs 2024-05-09 10:40:56.000000000 +0200
583 +++ bash-completion-2.14.0/completions/cvs 2024-06-16 21:23:04.445444559 +0200
584 @@ -262,7 +262,7 @@ _comp_cmd_cvs()
585 # far, but other changes (something other than
586 # changed/removed/new) may be missing.
587 _comp_compgen -a split -- "$(cvs -q diff --brief 2>&1 |
588 - command sed -ne '
589 + command gsed -ne '
590 # changed
591 s/^Files [^ ]* and \([^ ]*\) differ$/\1/p
592 # new/removed
593 diff -pruN bash-completion-2.14.0.old/completions/dict bash-completion-2.14.0/completions/dict
594 --- bash-completion-2.14.0.old/completions/dict 2024-05-09 10:40:56.000000000 +0200
595 +++ bash-completion-2.14.0/completions/dict 2024-06-16 21:23:04.853136434 +0200
596 @@ -4,7 +4,7 @@ _comp_cmd_dict__compgen_dictdata()
598 # shellcheck disable=SC2086
599 _comp_compgen_split -- "$(
600 - "$@" 2>/dev/null | command sed -ne \
601 + "$@" 2>/dev/null | command gsed -ne \
602 's/^[[:blank:]]\{1,\}\([^[:blank:]]*\).*$/\1/p'
605 @@ -56,11 +56,11 @@ _comp_cmd_dict()
606 local dictfile=/usr/share/dict/words
607 if [[ -r $dictfile ]]; then
608 # Dictfile may be too large for practical compgen -W usage, so narrow
609 - # it down with grep if $cur looks like something that's safe to embed
610 + # it down with ggrep if $cur looks like something that's safe to embed
611 # in a pattern instead.
612 if [[ $cur == +([-A-Za-z0-9/.]) ]]; then
613 _comp_compgen_split -- "$(
614 - command grep "^${cur//./\\.}" "$dictfile"
615 + command ggrep "^${cur//./\\.}" "$dictfile"
617 else
618 _comp_compgen_split -- "$(cat "$dictfile")"
619 diff -pruN bash-completion-2.14.0.old/completions/dladm bash-completion-2.14.0/completions/dladm
620 --- bash-completion-2.14.0.old/completions/dladm 2020-01-11 19:58:32.000000000 +0100
621 +++ bash-completion-2.14.0/completions/dladm 2024-06-16 21:23:04.431444356 +0200
622 @@ -14,7 +14,7 @@ _dladm()
623 COMPREPLY=( $(compgen -W "${cmds}" -- ${cur}) )
624 elif [[ ${prev} =~ "-z" ]]; then
625 # Some illumos OS distributions have zone-aware dladm. Treat -z as a zone name option
626 - local zones="$(zoneadm list -c | grep -v '^global$')"
627 + local zones="$(zoneadm list -c | ggrep -v '^global$')"
628 COMPREPLY=( $(compgen -W "${zones}" -- ${cur}) )
629 elif [[ ${prev} =~ 'delete-vnic' ]]; then
630 # Redirect stderr to /dev/null not to polute console, e.g.:
631 diff -pruN bash-completion-2.14.0.old/completions/dmypy bash-completion-2.14.0/completions/dmypy
632 --- bash-completion-2.14.0.old/completions/dmypy 2024-05-09 10:40:56.000000000 +0200
633 +++ bash-completion-2.14.0/completions/dmypy 2024-06-16 21:23:04.562649495 +0200
634 @@ -38,8 +38,8 @@ _comp_cmd_dmypy()
636 if [[ ! $has_cmd ]]; then
637 local cmds=$("$1" --help 2>&1 |
638 - command sed -ne '/positional arguments/{p;n;p;q;}' |
639 - command sed -ne 's/{\(.*\)}/\1/p')
640 + command gsed -ne '/positional arguments/{p;n;p;q;}' |
641 + command gsed -ne 's/{\(.*\)}/\1/p')
642 _comp_compgen -F , -- -W '$cmds'
643 return
645 diff -pruN bash-completion-2.14.0.old/completions/dnssec-keygen bash-completion-2.14.0/completions/dnssec-keygen
646 --- bash-completion-2.14.0.old/completions/dnssec-keygen 2024-05-09 10:40:56.000000000 +0200
647 +++ bash-completion-2.14.0/completions/dnssec-keygen 2024-06-16 21:23:04.735055801 +0200
648 @@ -3,9 +3,9 @@
649 _comp_cmd_dnssec_keygen__optarg()
651 local args=$("$1" -h 2>&1 |
652 - command sed -e 's/|/ /g' -e 's/(.*//' \
653 + command gsed -e 's/|/ /g' -e 's/(.*//' \
654 -ne '/^[[:space:]]*'"$2"'/,/^[[:space:]]*[(-]/p' |
655 - command sed -e 's/^[[:space:]]*'"$2"'.*://' -e '/^[[:space:]]*-/d')
656 + command gsed -e 's/^[[:space:]]*'"$2"'.*://' -e '/^[[:space:]]*-/d')
657 _comp_compgen -a -- -W '$args'
660 diff -pruN bash-completion-2.14.0.old/completions/dot bash-completion-2.14.0/completions/dot
661 --- bash-completion-2.14.0.old/completions/dot 2024-05-09 10:40:56.000000000 +0200
662 +++ bash-completion-2.14.0/completions/dot 2024-06-16 21:23:04.780787242 +0200
663 @@ -14,14 +14,14 @@ _comp_cmd_dot()
664 -T*)
665 # generate langs
666 _comp_compgen -c "${cur#-T}" split -P "-T" -- "$(
667 - "$1" -TNON_EXISTENT 2>&1 | command sed -ne 's/.*one of://p'
668 + "$1" -TNON_EXISTENT 2>&1 | command gsed -ne 's/.*one of://p'
670 return
672 -K*)
673 # generate layouts
674 _comp_compgen -c "${cur#-K}" split -P "-K" -- "$(
675 - "$1" -KNON_EXISTENT 2>&1 | command sed -ne 's/.*one of://p'
676 + "$1" -KNON_EXISTENT 2>&1 | command gsed -ne 's/.*one of://p'
678 return
680 diff -pruN bash-completion-2.14.0.old/completions/ebtables bash-completion-2.14.0/completions/ebtables
681 --- bash-completion-2.14.0.old/completions/ebtables 2024-05-09 10:40:56.000000000 +0200
682 +++ bash-completion-2.14.0/completions/ebtables 2024-06-16 21:23:04.416658628 +0200
683 @@ -18,7 +18,7 @@ _comp_cmd_ebtables()
684 -${noargopts}[AIDPFXLZ])
685 _comp_compgen_split -- "$(
686 "$1" ${table:+-t "$table"} -L 2>/dev/null |
687 - command sed -ne "$chain"
688 + command gsed -ne "$chain"
691 -${noargopts}t)
692 @@ -28,17 +28,17 @@ _comp_cmd_ebtables()
693 if [[ $table == "filter" || ! $table ]]; then
694 _comp_compgen -- -W '$targets'
695 _comp_compgen -a split -- "$("$1" ${table:+-t "$table"} -L \
696 - 2>/dev/null | command sed -n -e \
697 + 2>/dev/null | command gsed -n -e \
698 "s/INPUT\|OUTPUT\|FORWARD//" -e "$chain")"
699 elif [[ $table == "nat" ]]; then
700 _comp_compgen -- -W '$targets'
701 _comp_compgen -a split -- "$("$1" -t "$table" -L 2>/dev/null |
702 - command sed -n -e "s/OUTPUT|PREROUTING|POSTROUTING//" \
703 + command gsed -n -e "s/OUTPUT|PREROUTING|POSTROUTING//" \
704 -e "$chain")"
705 elif [[ $table == "broute" ]]; then
706 _comp_compgen -- -W 'ACCEPT DROP'
707 _comp_compgen -a split -- "$("$1" -t "$table" -L 2>/dev/null |
708 - command sed -n -e "s/BROUTING//" -e "$chain")"
709 + command gsed -n -e "s/BROUTING//" -e "$chain")"
713 diff -pruN bash-completion-2.14.0.old/completions/fbgs bash-completion-2.14.0/completions/fbgs
714 --- bash-completion-2.14.0.old/completions/fbgs 2024-05-09 10:40:56.000000000 +0200
715 +++ bash-completion-2.14.0/completions/fbgs 2024-06-16 21:23:04.349430122 +0200
716 @@ -11,7 +11,7 @@ _comp_cmd_fbgs()
717 return
719 -m | --mode)
720 - _comp_compgen_split -- "$(command sed \
721 + _comp_compgen_split -- "$(command gsed \
722 -n '/^mode/{s/^mode \{1,\}"\([^"]\{1,\}\)"/\1/g;p}' \
723 /etc/fb.modes 2>/dev/null)"
724 return
725 diff -pruN bash-completion-2.14.0.old/completions/fbi bash-completion-2.14.0/completions/fbi
726 --- bash-completion-2.14.0.old/completions/fbi 2024-05-09 10:40:56.000000000 +0200
727 +++ bash-completion-2.14.0/completions/fbi 2024-06-16 21:23:04.579477886 +0200
728 @@ -19,7 +19,7 @@ _comp_cmd_fbi()
729 return
731 -m | --mode)
732 - _comp_compgen_split -- "$(command sed \
733 + _comp_compgen_split -- "$(command gsed \
734 -n '/^mode/{s/^mode \{1,\}"\([^"]\{1,\}\)"/\1/g;p}' \
735 /etc/fb.modes 2>/dev/null)"
736 return
737 diff -pruN bash-completion-2.14.0.old/completions/fio bash-completion-2.14.0/completions/fio
738 --- bash-completion-2.14.0.old/completions/fio 2024-05-09 10:40:56.000000000 +0200
739 +++ bash-completion-2.14.0/completions/fio 2024-06-16 21:23:04.384705863 +0200
740 @@ -2,7 +2,7 @@
742 _comp_cmd_fio__compgen_engines()
744 - _comp_compgen_split -F $'\t\n' -- "$("$1" --enghelp 2>/dev/null | command sed -ne '/^[[:space:]]/p')"
745 + _comp_compgen_split -F $'\t\n' -- "$("$1" --enghelp 2>/dev/null | command gsed -ne '/^[[:space:]]/p')"
748 _comp_cmd_fio()
749 diff -pruN bash-completion-2.14.0.old/completions/function bash-completion-2.14.0/completions/function
750 --- bash-completion-2.14.0.old/completions/function 2024-05-09 10:40:56.000000000 +0200
751 +++ bash-completion-2.14.0/completions/function 2024-06-16 21:23:04.716027422 +0200
752 @@ -8,7 +8,7 @@ _comp_cmd_function()
753 if ((cword == 1)); then
754 _comp_compgen -- -A function
755 else
756 - local funcdef=$(type -- "${words[1]}" 2>/dev/null | command sed -e 1,2d)
757 + local funcdef=$(type -- "${words[1]}" 2>/dev/null | command gsed -e 1,2d)
758 COMPREPLY=("()${funcdef:+ $funcdef}")
760 } &&
761 diff -pruN bash-completion-2.14.0.old/completions/gcc bash-completion-2.14.0/completions/gcc
762 --- bash-completion-2.14.0.old/completions/gcc 2024-05-09 10:40:56.000000000 +0200
763 +++ bash-completion-2.14.0/completions/gcc 2024-06-16 21:23:04.398527191 +0200
764 @@ -12,7 +12,7 @@ _comp_cmd_gcc()
765 local cc=$("$1" -print-prog-name=cc1 2>/dev/null)
766 [[ $cc ]] || return
767 _comp_compgen_split -- "$("$cc" --help 2>/dev/null | tr '\t' ' ' |
768 - command sed -e '/^ *-/!d' -e 's/ *-\([^][ <>]*\).*/-\1/')"
769 + command gsed -e '/^ *-/!d' -e 's/ *-\([^][ <>]*\).*/-\1/')"
770 [[ ${COMPREPLY-} == *= ]] && compopt -o nospace
771 else
772 _comp_compgen_filedir
773 @@ -62,7 +62,7 @@ _comp_cmd_gcc()
774 local REPLY
775 _comp_realcommand "$1"
776 if [[ $REPLY == *$2* ]] ||
777 - "$1" --version 2>/dev/null | command grep -q GCC; then
778 + "$1" --version 2>/dev/null | command ggrep -q GCC; then
779 complete -F _comp_cmd_gcc "$1"
780 else
781 complete -F _comp_complete_minimal "$1"
782 diff -pruN bash-completion-2.14.0.old/completions/gdb bash-completion-2.14.0/completions/gdb
783 --- bash-completion-2.14.0.old/completions/gdb 2024-05-09 10:40:56.000000000 +0200
784 +++ bash-completion-2.14.0/completions/gdb 2024-06-16 21:23:04.670221297 +0200
785 @@ -31,7 +31,7 @@ _comp_cmd_gdb()
786 IFS=$' \t\n'
787 find ${path_array[@]+"${path_array[@]}"} . -name . -o \
788 -type d -prune -o -perm -u+x -print 2>/dev/null |
789 - command sed 's|^.*/||' | sort -u
790 + command gsed 's|^.*/||' | sort -u
793 elif ((cword == 2)); then
794 diff -pruN bash-completion-2.14.0.old/completions/gnokii bash-completion-2.14.0/completions/gnokii
795 --- bash-completion-2.14.0.old/completions/gnokii 2024-05-09 10:40:56.000000000 +0200
796 +++ bash-completion-2.14.0/completions/gnokii 2024-06-16 21:23:04.767079208 +0200
797 @@ -24,7 +24,7 @@ _comp_cmd_gnokii()
798 [[ -f $config_file ]] && break
799 done
800 [[ ! -f $config_file ]] && return
801 - _comp_compgen_split -- "$(command sed -n \
802 + _comp_compgen_split -- "$(command gsed -n \
803 's/^\[phone_\(.*\)\]/\1/p' "$config_file")"
804 return
806 @@ -221,7 +221,7 @@ _comp_cmd_gnokii()
807 # these 2 below are allowed in combination with others
808 local main_cmd
809 _comp_split -l main_cmd "$(printf '%s\n' "${all_cmd[@]}" |
810 - command sed -e '/--config/d;/--phone/d;s/[][\(){}|^$*+?.]/\\&/g')"
811 + command gsed -e '/--config/d;/--phone/d;s/[][\(){}|^$*+?.]/\\&/g')"
812 # don't provide main command completions if one is
813 # already on the command line
814 local IFS='|'
815 diff -pruN bash-completion-2.14.0.old/completions/gpg bash-completion-2.14.0/completions/gpg
816 --- bash-completion-2.14.0.old/completions/gpg 2024-05-09 10:40:56.000000000 +0200
817 +++ bash-completion-2.14.0/completions/gpg 2024-06-16 21:23:04.757474202 +0200
818 @@ -20,7 +20,7 @@ _comp_cmd_gpg()
819 --nrsign-key | --nrlsign-key | --try-secret-key | -${noargopts}k)
820 # return list of public keys
821 _comp_compgen_split -- "$("$1" --list-keys 2>/dev/null |
822 - command sed -ne \
823 + command gsed -ne \
824 's@^pub.*/\([^ ]*\).*$@\1@p' -ne \
825 's@^.*\(<\([^>]*\)>\).*$@\2@p')"
826 return
827 @@ -29,14 +29,14 @@ _comp_cmd_gpg()
828 --export-secret-subkeys | -${noargopts}K)
829 # return list of secret keys
830 _comp_compgen_split -- "$("$1" --list-secret-keys 2>/dev/null |
831 - command sed -ne 's@^.*<\([^>]*\)>.*$@\1@p')"
832 + command gsed -ne 's@^.*<\([^>]*\)>.*$@\1@p')"
833 return
835 --recipient | -${noargopts}r)
836 _comp_compgen_split -- "$("$1" --list-keys 2>/dev/null |
837 - command sed -ne 's@^.*<\([^>]*\)>.*$@\1@p')"
838 + command gsed -ne 's@^.*<\([^>]*\)>.*$@\1@p')"
839 if [[ -e ~/.gnupg/gpg.conf ]]; then
840 - _comp_compgen -a split -- "$(command sed -ne \
841 + _comp_compgen -a split -- "$(command gsed -ne \
842 's@^[ \t]*group[ \t][ \t]*\([^=]*\).*$@\1@p' \
843 ~/.gnupg/gpg.conf)"
845 diff -pruN bash-completion-2.14.0.old/completions/gpg2 bash-completion-2.14.0/completions/gpg2
846 --- bash-completion-2.14.0.old/completions/gpg2 2024-05-09 10:40:56.000000000 +0200
847 +++ bash-completion-2.14.0/completions/gpg2 2024-06-16 21:23:04.557298550 +0200
848 @@ -21,16 +21,16 @@ _comp_cmd_gpg2()
849 --locate-keys | --refresh-keys)
850 # return list of public keys
851 _comp_compgen_split -- "$("$1" --list-keys 2>/dev/null |
852 - command sed -ne \
853 + command gsed -ne \
854 's@^pub.*/\([^ ]*\).*$@\1@p' -ne \
855 's@^.*\(<\([^>]*\)>\).*$@\2@p')"
856 return
858 --recipient | -${noargopts}r)
859 _comp_compgen_split -- "$("$1" --list-keys 2>/dev/null |
860 - command sed -ne 's@^.*<\([^>]*\)>.*$@\1@p')"
861 + command gsed -ne 's@^.*<\([^>]*\)>.*$@\1@p')"
862 if [[ -e ~/.gnupg/gpg.conf ]]; then
863 - _comp_compgen -a split -- "$(command sed -ne \
864 + _comp_compgen -a split -- "$(command gsed -ne \
865 's@^[ \t]*group[ \t][ \t]*\([^=]*\).*$@\1@p' \
866 ~/.gnupg/gpg.conf)"
868 diff -pruN bash-completion-2.14.0.old/completions/gssdp-discover bash-completion-2.14.0/completions/gssdp-discover
869 --- bash-completion-2.14.0.old/completions/gssdp-discover 2024-05-09 10:40:56.000000000 +0200
870 +++ bash-completion-2.14.0/completions/gssdp-discover 2024-06-16 21:23:04.498500339 +0200
871 @@ -16,7 +16,7 @@ _comp_cmd_gssdp_discover()
872 --message-type | -m)
873 [[ $1 == *gssdp-discover ]] || return
874 local types=$("$1" --help 2>&1 |
875 - command sed -ne 's/^.*--message-type=.*(\([^)]*\))$/\1/p')
876 + command gsed -ne 's/^.*--message-type=.*(\([^)]*\))$/\1/p')
877 _comp_compgen -F $' \t\n,' -- -W "$types"
878 return
880 diff -pruN bash-completion-2.14.0.old/completions/iconv bash-completion-2.14.0/completions/iconv
881 --- bash-completion-2.14.0.old/completions/iconv 2024-05-09 10:40:56.000000000 +0200
882 +++ bash-completion-2.14.0/completions/iconv 2024-06-16 21:23:04.849898062 +0200
883 @@ -15,7 +15,7 @@ _iconv_charsets()
884 _comp_cmd_iconv__compgen_charsets()
886 _comp_compgen_split -X ... -- "$("$1" -l |
887 - command sed -e 's@/*$@@' -e 's/[,()]//g')"
888 + command gsed -e 's@/*$@@' -e 's/[,()]//g')"
891 _comp_cmd_iconv()
892 diff -pruN bash-completion-2.14.0.old/completions/ifstat bash-completion-2.14.0/completions/ifstat
893 --- bash-completion-2.14.0.old/completions/ifstat 2024-05-09 10:40:56.000000000 +0200
894 +++ bash-completion-2.14.0/completions/ifstat 2024-06-16 21:23:04.854243122 +0200
895 @@ -22,8 +22,8 @@ _comp_cmd_ifstat()
896 if ! {
897 "$1" --help 2>&1 || :
899 - command grep -q -- '-d.*--scan'; then
900 - _comp_compgen_split -- "$("$1" -v | command sed -e 's/[,.]//g' \
901 + command ggrep -q -- '-d.*--scan'; then
902 + _comp_compgen_split -- "$("$1" -v | command gsed -e 's/[,.]//g' \
903 -ne 's/^.*drivers://p')"
905 return
906 @@ -34,7 +34,7 @@ _comp_cmd_ifstat()
907 if ! {
908 "$1" --help 2>&1 || :
910 - command grep -q -- '-s.*--noupdate'; then
911 + command ggrep -q -- '-s.*--noupdate'; then
912 _comp_compgen_known_hosts -- "$cur"
913 return
915 @@ -45,7 +45,7 @@ _comp_cmd_ifstat()
917 "$1" --help 2>&1 || :
919 - command grep -q -- '-t.*--interval' || return
920 + command ggrep -q -- '-t.*--interval' || return
922 --extended | -${noargopts}x)
923 # iproute2: parse xstat types
924 diff -pruN bash-completion-2.14.0.old/completions/inotifywait bash-completion-2.14.0/completions/inotifywait
925 --- bash-completion-2.14.0.old/completions/inotifywait 2024-05-09 10:40:56.000000000 +0200
926 +++ bash-completion-2.14.0/completions/inotifywait 2024-06-16 21:23:04.884938527 +0200
927 @@ -6,7 +6,7 @@ _comp_cmd_inotifywait__events()
928 # tab. Word following the tab is event name, others are line
929 # wrapped explanations.
930 _comp_compgen -a split -- "$("$1" --help 2>/dev/null |
931 - command sed -e '/^Events:/,/^[^'$'\t'']/!d' \
932 + command gsed -e '/^Events:/,/^[^'$'\t'']/!d' \
933 -ne 's/^'$'\t''\([^ '$'\t'']\{1,\}\)[ '$'\t''].*/\1/p')"
936 diff -pruN bash-completion-2.14.0.old/completions/invoke-rc.d bash-completion-2.14.0/completions/invoke-rc.d
937 --- bash-completion-2.14.0.old/completions/invoke-rc.d 2024-05-09 10:40:56.000000000 +0200
938 +++ bash-completion-2.14.0/completions/invoke-rc.d 2024-06-16 21:23:04.421948792 +0200
939 @@ -19,13 +19,13 @@ _comp_cmd_invoke_rc_d()
940 # generate valid_options
941 _comp_compgen_split -- "$(
942 tr " " "\n" <<<"${words[*]} ${options[*]}" |
943 - command sed -ne "/$(command sed 's/ /\\|/g' <<<"${options[*]}")/p" |
944 + command gsed -ne "/$(command gsed 's/ /\\|/g' <<<"${options[*]}")/p" |
945 sort | uniq -u
947 _comp_expand_glob services '"$sysvdir"/!(README*|*.sh|$_comp_backup_glob)' &&
948 _comp_compgen -a -- -W '"${services[@]#"$sysvdir"/}"'
949 elif [[ -x $sysvdir/$prev ]]; then
950 - _comp_compgen_split -- "$(command sed -e 'y/|/ /' \
951 + _comp_compgen_split -- "$(command gsed -e 'y/|/ /' \
952 -ne 's/^.*Usage:[ ]*[^ ]*[ ]*{*\([^}"]*\).*$/\1/p' \
953 "$sysvdir/$prev")"
954 else
955 diff -pruN bash-completion-2.14.0.old/completions/ip bash-completion-2.14.0/completions/ip
956 --- bash-completion-2.14.0.old/completions/ip 2024-05-09 10:40:56.000000000 +0200
957 +++ bash-completion-2.14.0/completions/ip 2024-06-16 21:23:04.372879277 +0200
958 @@ -12,7 +12,7 @@ _comp_cmd_ip__netns()
959 _comp_split -l unquoted "$(
961 ${1-ip} -c=never netns list 2>/dev/null || ${1-ip} netns list
962 - } | command sed -e 's/ (.*//'
963 + } | command gsed -e 's/ (.*//'
965 # namespace names can have spaces, so we quote all of them if needed
966 local ns quoted=()
967 @@ -29,7 +29,7 @@ _comp_cmd_ip__link_types()
968 _comp_compgen_split -- "$(
970 ${1-ip} -c=never link help || ${1-ip} link help
971 - } 2>&1 | command sed -e \
972 + } 2>&1 | command gsed -e \
973 '/TYPE := /,/}/!d' -e \
974 's/.*{//' -e \
975 's/}.*//' -e \
976 @@ -42,7 +42,7 @@ _comp_cmd_ip__neigh_states()
977 _comp_compgen_split -- "$(
979 ${1-ip} -c=never neigh help || ${1-ip} neigh help
980 - } 2>&1 | command sed -e \
981 + } 2>&1 | command gsed -e \
982 '/STATE := /,/}/!d' -e \
983 's/.*{//' -e \
984 's/}.*//' -e \
985 @@ -93,7 +93,7 @@ _comp_cmd_ip()
986 ((cword == 1)) && printf '%s\n' -force
988 "$1" -c=never help || "$1" help
989 - } 2>&1 | command sed -e \
990 + } 2>&1 | command gsed -e \
991 's/[{|}=]/\n/g' -e \
992 's/\[\([^]]\{1,\}\)\]/\1/g'
994 @@ -102,7 +102,7 @@ _comp_cmd_ip()
995 _comp_compgen_split -- "help $(
997 "$1" -c=never help || "$1" help
998 - } 2>&1 | command sed -e \
999 + } 2>&1 | command gsed -e \
1000 '/OBJECT := /,/}/!d' -e \
1001 's/.*{//' -e \
1002 's/}.*//' -e \
1003 @@ -304,7 +304,7 @@ _comp_cmd_ip()
1004 _comp_compgen_split -- "$(
1006 "$1" -c=never r 2>/dev/null || "$1" r
1007 - } | command sed -ne \
1008 + } | command gsed -ne \
1009 's/.*via \([0-9.]*\).*/\1/p'
1011 elif [[ $prev == "$subcmd" ]]; then
1012 @@ -375,7 +375,7 @@ _comp_cmd_ip()
1013 _comp_compgen -- -W "$(
1014 # stats command was added after color, should always have it
1015 "$1" -c=never stats help 2>&1 |
1016 - command sed -e \
1017 + command gsed -e \
1018 '/^GROUP := /,/}/!d' -e \
1019 's/^GROUP := //g' -e \
1020 '/:=/d' -e \
1021 @@ -519,7 +519,7 @@ _comp_cmd_ip()
1022 _comp_compgen_split -- "help all $(
1024 "$1" -c=never monitor help || "$1" monitor help
1025 - } 2>&1 | command sed -e \
1026 + } 2>&1 | command gsed -e \
1027 '/OBJECTS := /,/[^|]$/!d' -e \
1028 's/OBJECTS := *//' -e \
1029 's/|//g'
1030 diff -pruN bash-completion-2.14.0.old/completions/iperf bash-completion-2.14.0/completions/iperf
1031 --- bash-completion-2.14.0.old/completions/iperf 2024-05-09 10:40:56.000000000 +0200
1032 +++ bash-completion-2.14.0/completions/iperf 2024-06-16 21:23:04.413479902 +0200
1033 @@ -20,8 +20,8 @@ _comp_cmd_iperf()
1034 --format | -${noargopts}f)
1035 local formats=$(
1036 "$1" --help 2>&1 |
1037 - command sed -ne 's/^.*--format .*\[\([a-zA-Z]\{1,\}\)\].*/\1/p' |
1038 - command sed -e 's/./& /g'
1039 + command gsed -ne 's/^.*--format .*\[\([a-zA-Z]\{1,\}\)\].*/\1/p' |
1040 + command gsed -e 's/./& /g'
1042 _comp_compgen -- -W '$formats'
1043 return
1044 @@ -77,10 +77,10 @@ _comp_cmd_iperf()
1045 for i in "${words[@]}"; do
1046 case $i in
1047 -s | --server)
1048 - filter=(command sed -e '/^Client.specific/,/^\(Server.specific.*\)\{0,1\}$/d')
1049 + filter=(command gsed -e '/^Client.specific/,/^\(Server.specific.*\)\{0,1\}$/d')
1051 -c | --client)
1052 - filter=(command sed -e '/^Server.specific/,/^\(Client.specific.*\)\{0,1\}$/d')
1053 + filter=(command gsed -e '/^Server.specific/,/^\(Client.specific.*\)\{0,1\}$/d')
1055 esac
1056 done
1057 diff -pruN bash-completion-2.14.0.old/completions/ipmitool bash-completion-2.14.0/completions/ipmitool
1058 --- bash-completion-2.14.0.old/completions/ipmitool 2024-05-09 10:40:56.000000000 +0200
1059 +++ bash-completion-2.14.0/completions/ipmitool 2024-06-16 21:23:04.380489269 +0200
1060 @@ -3,7 +3,7 @@
1061 _comp_cmd_ipmitool__singleline_help()
1063 _comp_compgen_split -- "$("$1" "$2" 2>&1 |
1064 - command sed -ne 's/[,\r]//g' -e 's/^.*[Cc]ommands://p')"
1065 + command gsed -ne 's/[,\r]//g' -e 's/^.*[Cc]ommands://p')"
1068 _comp_cmd_ipmitool()
1069 @@ -23,7 +23,7 @@ _comp_cmd_ipmitool()
1071 -*I)
1072 _comp_compgen_split -- "$("$1" -h 2>&1 |
1073 - command sed -e '/^Interfaces:/,/^[[:space:]]*$/!d' \
1074 + command gsed -e '/^Interfaces:/,/^[[:space:]]*$/!d' \
1075 -ne 's/^[[:space:]]\{1,\}\([^[:space:]]\{1,\}\).*/\1/p')"
1076 return
1078 diff -pruN bash-completion-2.14.0.old/completions/iptables bash-completion-2.14.0/completions/iptables
1079 --- bash-completion-2.14.0.old/completions/iptables 2024-05-09 10:40:56.000000000 +0200
1080 +++ bash-completion-2.14.0/completions/iptables 2024-06-16 21:23:04.385770302 +0200
1081 @@ -16,7 +16,7 @@ _comp_cmd_iptables()
1082 -*[AIDRPFXLZ])
1083 _comp_compgen_split -- "$(
1084 "$1" ${table:+-t "$table"} -nL 2>/dev/null |
1085 - command sed -ne 's/^Chain \([^ ]\{1,\}\).*$/\1/p'
1086 + command gsed -ne 's/^Chain \([^ ]\{1,\}\).*$/\1/p'
1089 -*t)
1090 @@ -26,24 +26,24 @@ _comp_cmd_iptables()
1091 if [[ $table == "filter" || ! $table ]]; then
1092 _comp_compgen -- -W '$targets'
1093 _comp_compgen -a split -- "$("$1" ${table:+-t "$table"} -nL \
1094 - 2>/dev/null | command sed -ne "$chain" \
1095 + 2>/dev/null | command gsed -ne "$chain" \
1096 -e 's/INPUT|OUTPUT|FORWARD|PREROUTING|POSTROUTING//')"
1097 elif [[ $table == "nat" ]]; then
1098 _comp_compgen -- -W '$targets MIRROR SNAT DNAT MASQUERADE'
1099 _comp_compgen -a split -- "$("$1" -t "$table" -nL 2>/dev/null |
1100 - command sed -ne "$chain" \
1101 + command gsed -ne "$chain" \
1102 -e 's/OUTPUT|PREROUTING|POSTROUTING//')"
1103 elif [[ $table == "mangle" ]]; then
1104 _comp_compgen -- -W '$targets MARK TOS'
1105 _comp_compgen -a split -- "$("$1" -t "$table" -nL 2>/dev/null |
1106 - command sed -ne "$chain" \
1107 + command gsed -ne "$chain" \
1108 -e 's/INPUT|OUTPUT|FORWARD|PREROUTING|POSTROUTING//')"
1112 if [[ $cur == -* ]]; then
1113 _comp_compgen_help - <<<"$("$1" --help 2>&1 |
1114 - command sed -e "s/^\[\!\]//")"
1115 + command gsed -e "s/^\[\!\]//")"
1116 [[ ${COMPREPLY-} == *= ]] && compopt -o nospace
1119 diff -pruN bash-completion-2.14.0.old/completions/ipv6calc bash-completion-2.14.0/completions/ipv6calc
1120 --- bash-completion-2.14.0.old/completions/ipv6calc 2024-05-09 10:40:56.000000000 +0200
1121 +++ bash-completion-2.14.0/completions/ipv6calc 2024-06-16 21:23:04.863831342 +0200
1122 @@ -12,9 +12,9 @@ _comp_cmd_ipv6calc()
1123 return
1125 --in | --out | --action | -${noargopts}[IOA])
1126 - # With ipv6calc < 0.73.0, -m does nothing here, so use sed instead.
1127 + # With ipv6calc < 0.73.0, -m does nothing here, so use gsed instead.
1128 _comp_compgen_split -- "$("$1" "$prev" -h 2>&1 |
1129 - command sed -ne 's/^[[:space:]]\{1,\}\([^[:space:]:]\{1,\}\)[[:space:]]*:.*/\1/p')"
1130 + command gsed -ne 's/^[[:space:]]\{1,\}\([^[:space:]:]\{1,\}\)[[:space:]]*:.*/\1/p')"
1131 return
1133 --db-geoip | --db-ip2location-ipv4 | --db-ip2location-ipv6)
1134 @@ -30,7 +30,7 @@ _comp_cmd_ipv6calc()
1136 if [[ $cur == -* ]]; then
1137 _comp_compgen_help - <<<"$("$1" -h 2>&1 |
1138 - command sed -e "s/[][]//g")"
1139 + command gsed -e "s/[][]//g")"
1142 } &&
1143 diff -pruN bash-completion-2.14.0.old/completions/isql bash-completion-2.14.0/completions/isql
1144 --- bash-completion-2.14.0.old/completions/isql 2024-05-09 10:40:56.000000000 +0200
1145 +++ bash-completion-2.14.0/completions/isql 2024-06-16 21:23:04.706445601 +0200
1146 @@ -8,7 +8,7 @@ _comp_cmd_isql()
1148 [[ -f ${ODBCINI-} ]] &&
1149 _comp_compgen_split -l -- "$(
1150 - command sed -n 's/\]//g;s/^\[//gp' "$ODBCINI"
1151 + command gsed -n 's/\]//g;s/^\[//gp' "$ODBCINI"
1153 } &&
1154 complete -F _comp_cmd_isql isql
1155 diff -pruN bash-completion-2.14.0.old/completions/java bash-completion-2.14.0/completions/java
1156 --- bash-completion-2.14.0.old/completions/java 2024-05-09 10:40:56.000000000 +0200
1157 +++ bash-completion-2.14.0/completions/java 2024-06-16 21:23:04.434660326 +0200
1158 @@ -70,7 +70,7 @@ _comp_cmd_java__classes()
1159 if [[ $i == *.@(jar|zip) && -r $i ]]; then
1160 if type zipinfo &>/dev/null; then
1161 _comp_split -a classes "$(zipinfo -1 "$i" "$cur*" 2>/dev/null |
1162 - command grep '^[^$]*\.class$')"
1163 + command ggrep '^[^$]*\.class$')"
1164 elif type unzip &>/dev/null; then
1165 # Last column, between entries consisting entirely of dashes
1166 _comp_split -a classes "$(unzip -lq "$i" "$cur*" 2>/dev/null |
1167 @@ -78,7 +78,7 @@ _comp_cmd_java__classes()
1168 flag && $NF ~ /^[^$]*\.class/ { print $NF }')"
1169 elif type jar &>/dev/null; then
1170 _comp_split -a classes "$(jar tf "$i" "$cur" |
1171 - command grep '^[^$]*\.class$')"
1172 + command ggrep '^[^$]*\.class$')"
1175 elif [[ -d $i ]]; then
1176 @@ -121,13 +121,13 @@ _comp_cmd_java__packages()
1177 _comp_expand_glob files '"$i/$cur"*' || continue
1178 _comp_split -la COMPREPLY "$(
1179 command ls -F -d "${files[@]}" 2>/dev/null |
1180 - command sed -e 's|^'"$i"'/||'
1181 + command gsed -e 's|^'"$i"'/||'
1184 done
1185 if ((${#COMPREPLY[@]} != 0)); then
1186 # keep only packages with the package suffix `/` being removed
1187 - _comp_split -l COMPREPLY "$(printf '%s\n' "${COMPREPLY[@]}" | command sed -n 's,/$,,p')"
1188 + _comp_split -l COMPREPLY "$(printf '%s\n' "${COMPREPLY[@]}" | command gsed -n 's,/$,,p')"
1189 # convert path syntax to package syntax
1190 ((${#COMPREPLY[@]})) && COMPREPLY=("${COMPREPLY[@]//\//.}")
1192 @@ -315,7 +315,7 @@ _comp_cmd_javac()
1193 # For some reason there may be -g:none AND -g:{lines,source,vars};
1194 # convert the none case to the curly brace format so it parses like
1195 # the others.
1196 - local opts=$("$1" $helpopt 2>&1 | command sed -e 's/-g:none/-g:{none}/' -ne \
1197 + local opts=$("$1" $helpopt 2>&1 | command gsed -e 's/-g:none/-g:{none}/' -ne \
1198 "s/^[[:space:]]*${cur%%:*}:{\([^}]\{1,\}\)}.*/\1/p")
1199 _comp_compgen -c "${cur#*:}" -- -W "${opts//,/ }"
1200 return
1201 diff -pruN bash-completion-2.14.0.old/completions/lilo bash-completion-2.14.0/completions/lilo
1202 --- bash-completion-2.14.0.old/completions/lilo 2024-05-09 10:40:56.000000000 +0200
1203 +++ bash-completion-2.14.0/completions/lilo 2024-06-16 21:23:04.825593835 +0200
1204 @@ -3,7 +3,7 @@
1205 _comp_cmd_lilo__labels()
1207 _comp_compgen_split -- "$(_comp_awk -F = '$1 ~ /^[ \t]*label$/ {print $2}' \
1208 - "${1:-/etc/lilo.conf}" 2>/dev/null | command sed -e 's/\"//g')"
1209 + "${1:-/etc/lilo.conf}" 2>/dev/null | command gsed -e 's/\"//g')"
1212 _comp_cmd_lilo()
1213 diff -pruN bash-completion-2.14.0.old/completions/links bash-completion-2.14.0/completions/links
1214 --- bash-completion-2.14.0.old/completions/links 2024-05-09 10:40:56.000000000 +0200
1215 +++ bash-completion-2.14.0/completions/links 2024-06-16 21:23:04.831927443 +0200
1216 @@ -28,7 +28,7 @@ _comp_cmd_links()
1218 -driver)
1219 local drivers=$("$1" -driver foo 2>&1 |
1220 - command sed -ne '$!d' -e '/^[a-z0-9, ]\{1,\}$/s/,/ /gp')
1221 + command gsed -ne '$!d' -e '/^[a-z0-9, ]\{1,\}$/s/,/ /gp')
1222 [[ $drivers ]] || drivers='x svgalib fb directfb pmshell atheos'
1223 _comp_compgen -- -W "$drivers"
1224 return
1225 diff -pruN bash-completion-2.14.0.old/completions/lintian bash-completion-2.14.0/completions/lintian
1226 --- bash-completion-2.14.0.old/completions/lintian 2024-05-09 10:40:56.000000000 +0200
1227 +++ bash-completion-2.14.0/completions/lintian 2024-06-16 21:23:04.375018612 +0200
1228 @@ -9,7 +9,7 @@ _comp_cmd_lintian__tags()
1229 if [[ $cur == *, ]]; then
1230 search=${cur//,/ }
1231 for item in $search; do
1232 - tags=$(command sed -e "s/\<$item\>//g" <<<"$tags")
1233 + tags=$(command gsed -e "s/\<$item\>//g" <<<"$tags")
1234 done
1235 _comp_compgen -aR -- -W "$tags"
1236 elif [[ $cur == *,* ]]; then
1237 @@ -29,11 +29,11 @@ _comp_cmd_lintian__checks()
1238 if [[ $cur == *, ]]; then
1239 search=${cur//,/ }
1240 for item in $search; do
1241 - match=$(command grep -nE "^(Check-Script|Abbrev): $item$" \
1242 + match=$(command ggrep -nE "^(Check-Script|Abbrev): $item$" \
1243 "${check_files[@]}" | cut -d: -f1)
1244 todisable=$(_comp_awk '/^(Check-Script|Abbrev)/ { print $2 }' "$match")
1245 for name in $todisable; do
1246 - checks=$(command sed -e "s/\<$name\>//g" <<<"$checks")
1247 + checks=$(command gsed -e "s/\<$name\>//g" <<<"$checks")
1248 done
1249 done
1250 _comp_compgen -aR -- -W "$checks"
1251 @@ -54,7 +54,7 @@ _comp_cmd_lintian__infos()
1252 if [[ $cur == *, ]]; then
1253 search=${cur//,/ }
1254 for item in $search; do
1255 - infos=$(command sed -e "s/\<$item\>//g" <<<"$infos")
1256 + infos=$(command gsed -e "s/\<$item\>//g" <<<"$infos")
1257 done
1258 _comp_compgen -aR -- -W "$infos"
1259 elif [[ $cur == *,* ]]; then
1260 diff -pruN bash-completion-2.14.0.old/completions/lvm bash-completion-2.14.0/completions/lvm
1261 --- bash-completion-2.14.0.old/completions/lvm 2024-05-09 10:40:56.000000000 +0200
1262 +++ bash-completion-2.14.0/completions/lvm 2024-06-16 21:23:04.897680395 +0200
1263 @@ -8,25 +8,25 @@ _comp_cmd_lvm__filedir()
1264 _comp_cmd_lvm__volumegroups()
1266 _comp_compgen_split -- "$(vgscan 2>/dev/null |
1267 - command sed -n -e 's|.*Found.*"\(.*\)".*$|\1|p')"
1268 + command gsed -n -e 's|.*Found.*"\(.*\)".*$|\1|p')"
1271 _comp_cmd_lvm__physicalvolumes_all()
1273 _comp_compgen_split -- "$(pvscan 2>/dev/null |
1274 - command sed -n -e 's|^.*PV \([^ ]*\) .*|\1|p')"
1275 + command gsed -n -e 's|^.*PV \([^ ]*\) .*|\1|p')"
1278 _comp_cmd_lvm__physicalvolumes()
1280 _comp_compgen_split -- "$(pvscan 2>/dev/null |
1281 - command sed -n -e 's|^.*PV \(.*\) VG.*$|\1|p')"
1282 + command gsed -n -e 's|^.*PV \(.*\) VG.*$|\1|p')"
1285 _comp_cmd_lvm__logicalvolumes()
1287 _comp_compgen_split -- "$(lvscan 2>/dev/null |
1288 - command sed -n -e "s|^.*'\(.*\)'.*$|\1|p")"
1289 + command gsed -n -e "s|^.*'\(.*\)'.*$|\1|p")"
1290 if [[ $cur == /dev/mapper/* ]]; then
1291 _comp_compgen -a filedir
1292 local i
1293 diff -pruN bash-completion-2.14.0.old/completions/Makefile.in bash-completion-2.14.0/completions/Makefile.in
1294 --- bash-completion-2.14.0.old/completions/Makefile.in 2024-05-09 10:41:08.000000000 +0200
1295 +++ bash-completion-2.14.0/completions/Makefile.in 2024-06-16 21:23:04.505167846 +0200
1296 @@ -42,13 +42,13 @@ am__make_running_with_option = \
1297 *\\[\ \ ]*) \
1298 bs=\\; \
1299 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
1300 - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
1301 + | gsed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
1302 esac; \
1303 fi; \
1304 skip_next=no; \
1305 strip_trailopt () \
1307 - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
1308 + flg=`printf '%s\n' "$$flg" | gsed "s/$$1.*$$//"`; \
1309 }; \
1310 for flg in $$sane_makeflags; do \
1311 test $$skip_next = yes && { skip_next=no; continue; }; \
1312 @@ -114,27 +114,27 @@ am__can_run_installinfo = \
1313 n|no|NO) false;; \
1314 *) (install-info --version) >/dev/null 2>&1;; \
1315 esac
1316 -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
1317 +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | gsed 's|.|.|g'`;
1318 am__vpath_adj = case $$p in \
1319 - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
1320 + $(srcdir)/*) f=`echo "$$p" | gsed "s|^$$srcdirstrip/||"`;; \
1321 *) f=$$p;; \
1322 esac;
1323 -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
1324 +am__strip_dir = f=`echo $$p | gsed -e 's|^.*/||'`;
1325 am__install_max = 40
1326 am__nobase_strip_setup = \
1327 - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
1328 + srcdirstrip=`echo "$(srcdir)" | gsed 's/[].[^$$\\*|]/\\\\&/g'`
1329 am__nobase_strip = \
1330 - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
1331 + for p in $$list; do echo "$$p"; done | gsed -e "s|$$srcdirstrip/||"
1332 am__nobase_list = $(am__nobase_strip_setup); \
1333 for p in $$list; do echo "$$p $$p"; done | \
1334 - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
1335 + gsed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
1336 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
1337 if (++n[$$2] == $(am__install_max)) \
1338 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
1339 END { for (dir in files) print dir, files[dir] }'
1340 am__base_list = \
1341 - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
1342 - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
1343 + gsed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
1344 + gsed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
1345 am__uninstall_files_from_dir = { \
1346 test -z "$$files" \
1347 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
1348 @@ -1199,7 +1199,7 @@ install-bashcompDATA: $(bashcomp_DATA)
1349 uninstall-bashcompDATA:
1350 @$(NORMAL_UNINSTALL)
1351 @list='$(bashcomp_DATA)'; test -n "$(bashcompdir)" || list=; \
1352 - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
1353 + files=`for p in $$list; do echo $$p; done | gsed -e 's|^.*/||'`; \
1354 dir='$(DESTDIR)$(bashcompdir)'; $(am__uninstall_files_from_dir)
1355 tags TAGS:
1357 @@ -1211,21 +1211,21 @@ distdir: $(BUILT_SOURCES)
1358 $(MAKE) $(AM_MAKEFLAGS) distdir-am
1360 distdir-am: $(DISTFILES)
1361 - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1362 - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1363 + @srcdirstrip=`echo "$(srcdir)" | gsed 's/[].[^$$\\*]/\\\\&/g'`; \
1364 + topsrcdirstrip=`echo "$(top_srcdir)" | gsed 's/[].[^$$\\*]/\\\\&/g'`; \
1365 list='$(DISTFILES)'; \
1366 dist_files=`for file in $$list; do echo $$file; done | \
1367 - sed -e "s|^$$srcdirstrip/||;t" \
1368 + gsed -e "s|^$$srcdirstrip/||;t" \
1369 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
1370 case $$dist_files in \
1371 */*) $(MKDIR_P) `echo "$$dist_files" | \
1372 - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
1373 + gsed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
1374 sort -u` ;; \
1375 esac; \
1376 for file in $$dist_files; do \
1377 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
1378 if test -d $$d/$$file; then \
1379 - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
1380 + dir=`echo "/$$file" | gsed -e 's,/[^/]*$$,,'`; \
1381 if test -d "$(distdir)/$$file"; then \
1382 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1383 fi; \
1384 diff -pruN bash-completion-2.14.0.old/completions/makepkg bash-completion-2.14.0/completions/makepkg
1385 --- bash-completion-2.14.0.old/completions/makepkg 2024-05-09 10:40:56.000000000 +0200
1386 +++ bash-completion-2.14.0/completions/makepkg 2024-06-16 21:23:04.671300774 +0200
1387 @@ -14,7 +14,7 @@ _comp_cmd_makepkg__slackware()
1388 esac
1390 if [[ $cur == -* ]]; then
1391 - _comp_compgen_help - <<<"$("$1" | command sed -e "s/^options://")"
1392 + _comp_compgen_help - <<<"$("$1" | command gsed -e "s/^options://")"
1393 return
1396 diff -pruN bash-completion-2.14.0.old/completions/mcrypt bash-completion-2.14.0/completions/mcrypt
1397 --- bash-completion-2.14.0.old/completions/mcrypt 2024-05-09 10:40:56.000000000 +0200
1398 +++ bash-completion-2.14.0/completions/mcrypt 2024-06-16 21:23:04.622803980 +0200
1399 @@ -26,7 +26,7 @@ _comp_cmd_mcrypt()
1401 -h | --hash)
1402 _comp_compgen_split -- "$("$1" --list-hash 2>/dev/null |
1403 - command sed -e 1d)"
1404 + command gsed -e 1d)"
1405 return
1407 -k | -s | --key | --keysize)
1408 diff -pruN bash-completion-2.14.0.old/completions/medusa bash-completion-2.14.0/completions/medusa
1409 --- bash-completion-2.14.0.old/completions/medusa 2024-05-09 10:40:56.000000000 +0200
1410 +++ bash-completion-2.14.0/completions/medusa 2024-06-16 21:23:04.341956137 +0200
1411 @@ -16,7 +16,7 @@ _comp_cmd_medusa()
1413 -*M)
1414 _comp_compgen_split -- "$("$1" -d | _comp_awk '/^ +\+/ {print $2}' |
1415 - command sed -e 's/\.mod$//')"
1416 + command gsed -e 's/\.mod$//')"
1417 return
1419 esac
1420 diff -pruN bash-completion-2.14.0.old/completions/modprobe bash-completion-2.14.0/completions/modprobe
1421 --- bash-completion-2.14.0.old/completions/modprobe 2024-05-09 10:40:56.000000000 +0200
1422 +++ bash-completion-2.14.0/completions/modprobe 2024-06-16 21:23:04.788222093 +0200
1423 @@ -90,7 +90,7 @@ _comp_cmd_modprobe()
1424 prev=${cur%%=*}
1425 cur=${cur#*=}
1426 if PATH="$PATH:/sbin" modinfo -p "$module" 2>/dev/null |
1427 - command grep -q "^$prev:.*(bool)"; then
1428 + command ggrep -q "^$prev:.*(bool)"; then
1429 local choices="on off"
1430 [[ $cur ]] && choices="1 0 y Y n N on off"
1431 _comp_compgen -- -W "$choices"
1432 diff -pruN bash-completion-2.14.0.old/completions/mplayer bash-completion-2.14.0/completions/mplayer
1433 --- bash-completion-2.14.0.old/completions/mplayer 2024-05-09 10:40:56.000000000 +0200
1434 +++ bash-completion-2.14.0/completions/mplayer 2024-06-16 21:23:04.513854634 +0200
1435 @@ -4,8 +4,8 @@ _comp_cmd_mplayer__options()
1437 cur=${cur%\\}
1438 _comp_compgen_split -- "$("$1" -noconfig all "$2" help 2>/dev/null |
1439 - command sed -e '/^Available/,/^$/!d' -e '/^Available/d' | _comp_awk '{print $1}' |
1440 - command sed -e 's/:$//' -e 's/^'"${2#-}"'$//' -e 's/<.*//')"
1441 + command gsed -e '/^Available/,/^$/!d' -e '/^Available/d' | _comp_awk '{print $1}' |
1442 + command gsed -e 's/:$//' -e 's/^'"${2#-}"'$//' -e 's/<.*//')"
1445 _comp_cmd_mplayer()
1446 @@ -54,7 +54,7 @@ _comp_cmd_mplayer()
1448 -subcp | -msgcharset)
1449 local cp
1450 - if _comp_split cp "$(iconv --list 2>/dev/null | command sed -e "s@//@@;" 2>/dev/null)"; then
1451 + if _comp_split cp "$(iconv --list 2>/dev/null | command gsed -e "s@//@@;" 2>/dev/null)"; then
1452 if [[ $cur == "${cur,,}" ]]; then
1453 _comp_compgen -- -W '"${cp[@],,}"'
1454 else
1455 @@ -267,7 +267,7 @@ _comp_cmd_mplayer()
1456 case $cur in
1458 _comp_compgen_split -- "$("$cmd" -noconfig all -list-options 2>/dev/null |
1459 - command sed -ne "1,/^[[:space:]]*Name/d" \
1460 + command gsed -ne "1,/^[[:space:]]*Name/d" \
1461 -e "s/^[[:space:]]*/-/" -e "s/[[:space:]:].*//" \
1462 -e "/^-\(Total\|.*\*\)\{0,1\}$/!p")"
1464 diff -pruN bash-completion-2.14.0.old/completions/msynctool bash-completion-2.14.0/completions/msynctool
1465 --- bash-completion-2.14.0.old/completions/msynctool 2024-05-09 10:40:56.000000000 +0200
1466 +++ bash-completion-2.14.0/completions/msynctool 2024-06-16 21:23:04.542382234 +0200
1467 @@ -8,22 +8,22 @@ _comp_cmd_msynctool()
1468 case $words in
1469 --configure)
1470 _comp_compgen_split -- "$("$1" --showgroup "$prev" |
1471 - _comp_awk '/^Member/ {print $2}' | command sed -e 's/:$//')"
1472 + _comp_awk '/^Member/ {print $2}' | command gsed -e 's/:$//')"
1473 return
1475 --addmember)
1476 - _comp_compgen_split -- "$("$1" --listplugins | command sed -e 1d)"
1477 + _comp_compgen_split -- "$("$1" --listplugins | command gsed -e 1d)"
1478 return
1480 esac
1482 case $prev in
1483 --configure | --addgroup | --delgroup | --showgroup | --sync | --addmember)
1484 - _comp_compgen_split -- "$("$1" --listgroups | command sed -e 1d)"
1485 + _comp_compgen_split -- "$("$1" --listgroups | command gsed -e 1d)"
1486 return
1488 --showformats | --filter-objtype | --slow-sync)
1489 - _comp_compgen_split -- "$("$1" --listobjects | command sed -e 1d)"
1490 + _comp_compgen_split -- "$("$1" --listobjects | command gsed -e 1d)"
1491 return
1493 esac
1494 diff -pruN bash-completion-2.14.0.old/completions/mutt bash-completion-2.14.0/completions/mutt
1495 --- bash-completion-2.14.0.old/completions/mutt 2024-05-09 10:40:56.000000000 +0200
1496 +++ bash-completion-2.14.0/completions/mutt 2024-06-16 21:23:04.496402641 +0200
1497 @@ -67,7 +67,7 @@ _comp_cmd_mutt__get_conffiles__visit()
1498 conffiles+=("$1")
1500 local -a newconffiles
1501 - _comp_split newconffiles "$(command sed -n 's|^source[[:space:]]\{1,\}\([^[:space:]]\{1,\}\).*$|\1|p' "$1")" ||
1502 + _comp_split newconffiles "$(command gsed -n 's|^source[[:space:]]\{1,\}\([^[:space:]]\{1,\}\).*$|\1|p' "$1")" ||
1503 return 0
1505 local file REPLY
1506 @@ -90,7 +90,7 @@ _comp_cmd_mutt__aliases()
1507 local REPLY
1508 _comp_cmd_mutt__get_conffiles "$muttrc" || return 0
1509 conffiles=("${REPLY[@]}")
1510 - _comp_compgen -a split -- "$(command sed -n 's|^alias[[:space:]]\{1,\}\([^[:space:]]\{1,\}\).*$|\1|p' \
1511 + _comp_compgen -a split -- "$(command gsed -n 's|^alias[[:space:]]\{1,\}\([^[:space:]]\{1,\}\).*$|\1|p' \
1512 "${conffiles[@]}")"
1515 @@ -101,7 +101,7 @@ _comp_cmd_mutt__query()
1516 [[ $cur ]] || return 0
1517 local muttcmd=${words[0]}
1519 - local querycmd="$("$muttcmd" -Q query_command 2>/dev/null | command sed -e 's|^query_command=\"\(.*\)\"$|\1|' -e 's|%s|'"$cur"'|')"
1520 + local querycmd="$("$muttcmd" -Q query_command 2>/dev/null | command gsed -e 's|^query_command=\"\(.*\)\"$|\1|' -e 's|%s|'"$cur"'|')"
1521 if [[ $querycmd ]]; then
1522 local REPLY
1523 _comp_expand_tilde "$querycmd"
1524 @@ -109,7 +109,7 @@ _comp_cmd_mutt__query()
1525 # generate queryresults:
1526 # $querycmd is expected to be a command with arguments
1527 _comp_compgen -a split -- "$($querycmd |
1528 - command sed -n '2,$s|^\([^[:space:]]\{1,\}\).*|\1|p')"
1529 + command gsed -n '2,$s|^\([^[:space:]]\{1,\}\).*|\1|p')"
1533 @@ -120,7 +120,7 @@ _comp_cmd_mutt__filedir()
1534 _comp_cmd_mutt__get_muttrc
1535 muttrc=$REPLY
1536 if [[ $cur == [=+]* ]]; then
1537 - folder="$("$muttcmd" -F "$muttrc" -Q folder 2>/dev/null | command sed -e 's|^folder=\"\(.*\)\"$|\1|')"
1538 + folder="$("$muttcmd" -F "$muttrc" -Q folder 2>/dev/null | command gsed -e 's|^folder=\"\(.*\)\"$|\1|')"
1539 [[ $folder ]] || folder=~/Mail
1541 # Match any file in $folder beginning with $cur
1542 @@ -131,7 +131,7 @@ _comp_cmd_mutt__filedir()
1543 return
1544 elif [[ $cur == !* ]]; then
1545 spoolfile="$("$muttcmd" -F "$muttrc" -Q spoolfile 2>/dev/null |
1546 - command sed -e 's|^spoolfile=\"\(.*\)\"$|\1|')"
1547 + command gsed -e 's|^spoolfile=\"\(.*\)\"$|\1|')"
1548 if [[ $spoolfile ]]; then
1549 _comp_dequote "\"$spoolfile\"" && spoolfile=$REPLY
1550 cur=$spoolfile${cur:1}
1551 diff -pruN bash-completion-2.14.0.old/completions/mysql bash-completion-2.14.0/completions/mysql
1552 --- bash-completion-2.14.0.old/completions/mysql 2024-05-09 10:40:56.000000000 +0200
1553 +++ bash-completion-2.14.0/completions/mysql 2024-06-16 21:23:04.701131761 +0200
1554 @@ -35,7 +35,7 @@ _comp_cmd_mysql()
1556 --database | -${noargopts}D)
1557 _comp_compgen_split -- "$(mysqlshow 2>/dev/null |
1558 - command sed -ne '2d' -e 's/^|.\([^|]*\)|.*/\1/p')"
1559 + command gsed -ne '2d' -e 's/^|.\([^|]*\)|.*/\1/p')"
1560 return
1563 @@ -102,7 +102,7 @@ _comp_cmd_mysql()
1564 esac
1566 _comp_compgen_split -- "$(mysqlshow 2>/dev/null |
1567 - command sed -ne '2d' -e 's/^|.\([^|]*\)|.*/\1/p')"
1568 + command gsed -ne '2d' -e 's/^|.\([^|]*\)|.*/\1/p')"
1569 } &&
1570 complete -F _comp_cmd_mysql mysql
1572 diff -pruN bash-completion-2.14.0.old/completions/ncftp bash-completion-2.14.0/completions/ncftp
1573 --- bash-completion-2.14.0.old/completions/ncftp 2024-05-09 10:40:56.000000000 +0200
1574 +++ bash-completion-2.14.0/completions/ncftp 2024-06-16 21:23:04.707492999 +0200
1575 @@ -17,7 +17,7 @@ _comp_cmd_ncftp()
1578 if [[ $cword -eq 1 && -f ~/.ncftp/bookmarks ]]; then
1579 - _comp_compgen_split -- "$(command sed -ne \
1580 + _comp_compgen_split -- "$(command gsed -ne \
1581 's/^\([^,]\{1,\}\),.*$/\1/p' ~/.ncftp/bookmarks)"
1584 diff -pruN bash-completion-2.14.0.old/completions/nmap bash-completion-2.14.0/completions/nmap
1585 --- bash-completion-2.14.0.old/completions/nmap 2024-05-09 10:40:56.000000000 +0200
1586 +++ bash-completion-2.14.0/completions/nmap 2024-06-16 21:23:04.391030674 +0200
1587 @@ -36,7 +36,7 @@ _comp_cmd_nmap()
1588 # strip everything following a non-option name or = char
1589 # TODO: should expand -T<0-5> to -T0 ... -T5
1590 _comp_compgen_split -- "$(
1591 - "$1" --help 2>&1 | command sed \
1592 + "$1" --help 2>&1 | command gsed \
1593 -e "s/:.*$//" \
1594 -e "s/=.*$/=/" \
1595 -e "s/;[[:space:]]*-/ -/g" \
1596 diff -pruN bash-completion-2.14.0.old/completions/openssl bash-completion-2.14.0/completions/openssl
1597 --- bash-completion-2.14.0.old/completions/openssl 2024-05-09 10:40:56.000000000 +0200
1598 +++ bash-completion-2.14.0/completions/openssl 2024-06-16 21:23:04.835164080 +0200
1599 @@ -33,8 +33,8 @@ _comp_cmd_openssl__compgen_digests()
1600 _comp_awk '/^-.*[ \t]to use the .* message digest algorithm/ { print $1 }'
1602 _comp_compgen -ac "${cur#-}" split -P "-" -- "$("$1" help 2>&1 |
1603 - command sed -ne '/^Message Digest commands/,/^[[:space:]]*$/p' |
1604 - command sed -e 1d)"
1605 + command gsed -ne '/^Message Digest commands/,/^[[:space:]]*$/p' |
1606 + command gsed -e 1d)"
1609 _comp_cmd_openssl()
1610 diff -pruN bash-completion-2.14.0.old/completions/pdftotext bash-completion-2.14.0/completions/pdftotext
1611 --- bash-completion-2.14.0.old/completions/pdftotext 2024-05-09 10:40:56.000000000 +0200
1612 +++ bash-completion-2.14.0/completions/pdftotext 2024-06-16 21:23:04.523344534 +0200
1613 @@ -12,7 +12,7 @@ _comp_cmd_pdftotext()
1615 -enc)
1616 _comp_compgen_split -- "$("$1" -listenc 2>/dev/null |
1617 - command sed -e 1d)"
1618 + command gsed -e 1d)"
1619 return
1621 -eol)
1622 diff -pruN bash-completion-2.14.0.old/completions/perl bash-completion-2.14.0/completions/perl
1623 --- bash-completion-2.14.0.old/completions/perl 2024-05-09 10:40:56.000000000 +0200
1624 +++ bash-completion-2.14.0/completions/perl 2024-06-16 21:23:04.753241115 +0200
1625 @@ -131,7 +131,7 @@ _comp_cmd_perldoc()
1626 _comp_cmd_perl__helper "" perldocs
1627 if [[ $cur == p* ]]; then
1628 _comp_compgen -a split -- "$(PERLDOC_PAGER=cat "$1" -u perl |
1629 - command sed -ne '/perl.*Perl overview/,/perlwin32/p' |
1630 + command gsed -ne '/perl.*Perl overview/,/perlwin32/p' |
1631 _comp_awk 'NF >= 2 && $1 ~ /^perl/ { print $1 }')"
1634 diff -pruN bash-completion-2.14.0.old/completions/pgrep bash-completion-2.14.0/completions/pgrep
1635 --- bash-completion-2.14.0.old/completions/pgrep 2024-05-09 10:40:56.000000000 +0200
1636 +++ bash-completion-2.14.0/completions/pgrep 2024-06-16 21:23:04.423022859 +0200
1637 @@ -38,7 +38,7 @@ _comp_cmd_pgrep()
1638 --nslist)
1639 _comp_compgen -c "${cur##*,}" split -F $' \t\n,' -- "$(
1640 "$1" --help 2>&1 |
1641 - command sed -ne 's/^[[:space:]]*Available namespaces://p'
1642 + command gsed -ne 's/^[[:space:]]*Available namespaces://p'
1643 )" &&
1644 _comp_delimited , -W '"${COMPREPLY[@]}"'
1645 return
1646 @@ -48,7 +48,7 @@ _comp_cmd_pgrep()
1647 if [[ $cur == -* ]]; then
1648 _comp_compgen_help ||
1649 _comp_compgen_usage - <<<"$("$1" --usage 2>&1 |
1650 - command sed -e "s/\[-signal\]//" -e "s/\[-SIGNAL\]//")"
1651 + command gsed -e "s/\[-signal\]//" -e "s/\[-SIGNAL\]//")"
1652 [[ $cword -eq 1 && $1 == *pkill ]] && _comp_compgen -a signals -
1653 return
1655 diff -pruN bash-completion-2.14.0.old/completions/pkgadd bash-completion-2.14.0/completions/pkgadd
1656 --- bash-completion-2.14.0.old/completions/pkgadd 2024-05-09 10:40:56.000000000 +0200
1657 +++ bash-completion-2.14.0/completions/pkgadd 2024-06-16 21:23:04.808583996 +0200
1658 @@ -48,7 +48,7 @@ _comp_cmd_pkgadd()
1659 local REPLY
1660 _comp_dequote "$device"
1661 _comp_split -l pkginst_list "$(strings "${REPLY-}" |
1662 - command sed -n 's/^PKG=//p' | sort -u)"
1663 + command gsed -n 's/^PKG=//p' | sort -u)"
1665 ((${#pkginst_list[@]})) &&
1666 _comp_compgen -- -W '"${pkginst_list[@]}"'
1667 diff -pruN bash-completion-2.14.0.old/completions/pngfix bash-completion-2.14.0/completions/pngfix
1668 --- bash-completion-2.14.0.old/completions/pngfix 2024-05-09 10:40:56.000000000 +0200
1669 +++ bash-completion-2.14.0/completions/pngfix 2024-06-16 21:23:04.717113663 +0200
1670 @@ -15,7 +15,7 @@ _comp_cmd_pngfix()
1672 --strip)
1673 _comp_compgen_split -F '|' -- "$("$1" --help 2>&1 |
1674 - command sed -ne 's/.*--strip=\[\([^]]*\)\].*/\1/p')"
1675 + command gsed -ne 's/.*--strip=\[\([^]]*\)\].*/\1/p')"
1676 return
1678 esac
1679 diff -pruN bash-completion-2.14.0.old/completions/postcat bash-completion-2.14.0/completions/postcat
1680 --- bash-completion-2.14.0.old/completions/postcat 2024-05-09 10:40:56.000000000 +0200
1681 +++ bash-completion-2.14.0/completions/postcat 2024-06-16 21:23:04.553020724 +0200
1682 @@ -23,7 +23,7 @@ _comp_cmd_postcat()
1683 done
1684 if [[ $qfile ]]; then
1685 _comp_compgen_split -- "$(mailq 2>/dev/null |
1686 - command sed -e '1d; $d; /^[^0-9A-Z]/d; /^$/d; s/[* !].*$//')"
1687 + command gsed -e '1d; $d; /^[^0-9A-Z]/d; /^$/d; s/[* !].*$//')"
1688 return
1691 diff -pruN bash-completion-2.14.0.old/completions/postsuper bash-completion-2.14.0/completions/postsuper
1692 --- bash-completion-2.14.0.old/completions/postsuper 2024-05-09 10:40:56.000000000 +0200
1693 +++ bash-completion-2.14.0/completions/postsuper 2024-06-16 21:23:04.471895316 +0200
1694 @@ -12,17 +12,17 @@ _comp_cmd_postsuper()
1696 -[dr])
1697 _comp_compgen_split -- "ALL $(mailq 2>/dev/null |
1698 - command sed -e '1d; $d; /^[^0-9A-Z]/d; /^$/d; s/[* !].*$//')"
1699 + command gsed -e '1d; $d; /^[^0-9A-Z]/d; /^$/d; s/[* !].*$//')"
1700 return
1703 _comp_compgen_split -- "ALL $(mailq 2>/dev/null |
1704 - command sed \
1705 + command gsed \
1706 -e '1d; $d; /^[^0-9A-Z]/d; /^$/d; s/[* ].*$//; /!$/d')"
1707 return
1710 - _comp_compgen_split -- "ALL $(mailq 2>/dev/null | command sed \
1711 + _comp_compgen_split -- "ALL $(mailq 2>/dev/null | command gsed \
1712 -e '1d; $d; /^[^0-9A-Z]/d; /^$/d; /^[0-9A-Z]*[* ]/d; s/!.*$//')"
1713 return
1715 diff -pruN bash-completion-2.14.0.old/completions/povray bash-completion-2.14.0/completions/povray
1716 --- bash-completion-2.14.0.old/completions/povray 2024-05-09 10:40:56.000000000 +0200
1717 +++ bash-completion-2.14.0/completions/povray 2024-06-16 21:23:04.435735501 +0200
1718 @@ -23,7 +23,7 @@ _comp_cmd_povray()
1719 # guess what output file type user may want
1720 case $(
1721 IFS=$'\n'
1722 - command grep '^[-+]F' <<<"${words[*]}"
1723 + command ggrep '^[-+]F' <<<"${words[*]}"
1724 ) in
1725 [-+]FN) oext=png ;;
1726 [-+]FP) oext=ppm ;;
1727 @@ -48,7 +48,7 @@ _comp_cmd_povray()
1728 cur="${povcur#*\[}"
1729 pfx="${povcur%\["$cur"}" # prefix == filename
1730 [[ -f $pfx && -r $pfx ]] || return
1731 - _comp_compgen_split -l -- "$(command sed -ne \
1732 + _comp_compgen_split -l -- "$(command gsed -ne \
1733 's/^[[:space:]]*\[\([^]]*\]\).*$/\1/p' -- "$pfx")" &&
1734 # to prevent [bar] expand to nothing. can be done more easily?
1735 _comp_compgen -Rv COMPREPLY -- -P "${pfx}[" -W '"${COMPREPLY[@]}"'
1736 diff -pruN bash-completion-2.14.0.old/completions/ps bash-completion-2.14.0/completions/ps
1737 --- bash-completion-2.14.0.old/completions/ps 2024-05-09 10:40:56.000000000 +0200
1738 +++ bash-completion-2.14.0/completions/ps 2024-06-16 21:23:04.446547391 +0200
1739 @@ -61,7 +61,7 @@ _comp_cmd_ps()
1740 "$1" --help
1741 "$1" --help all
1742 } 2>/dev/null |
1743 - command sed -e "s/, [A-Za-z],/,/")" ||
1744 + command gsed -e "s/, [A-Za-z],/,/")" ||
1745 _comp_compgen_usage
1747 } &&
1748 diff -pruN bash-completion-2.14.0.old/completions/puppet bash-completion-2.14.0/completions/puppet
1749 --- bash-completion-2.14.0.old/completions/puppet 2024-05-09 10:40:56.000000000 +0200
1750 +++ bash-completion-2.14.0/completions/puppet 2024-06-16 21:23:04.700047475 +0200
1751 @@ -24,7 +24,7 @@ _comp_cmd_puppet__certs()
1752 if [[ $1 == --all ]]; then
1753 cert_list=$(
1754 $puppetca --list --all |
1755 - command sed -e 's/^[+-]\{0,1\}[[:space:]]*\([^[:space:]]\{1,\}\)[[:space:]]\{1,\}.*$/\1/'
1756 + command gsed -e 's/^[+-]\{0,1\}[[:space:]]*\([^[:space:]]\{1,\}\)[[:space:]]\{1,\}.*$/\1/'
1758 else
1759 cert_list=$("$puppetca" --list)
1760 @@ -35,7 +35,7 @@ _comp_cmd_puppet__certs()
1761 _comp_cmd_puppet__types()
1763 puppet_types=$(
1764 - puppet describe --list | command sed -e 's/^\([^[:space:]]\{1,\}\).*$/\1/'
1765 + puppet describe --list | command gsed -e 's/^\([^[:space:]]\{1,\}\).*$/\1/'
1767 _comp_compgen -a -- -W "$puppet_types"
1769 @@ -47,7 +47,7 @@ _comp_cmd_puppet__references()
1770 puppetdoc=puppetdoc
1772 puppet_doc_list=$(
1773 - $puppetdoc --list | command sed -e 's/^\([^[:space:]]\{1,\}\).*$/\1/'
1774 + $puppetdoc --list | command gsed -e 's/^\([^[:space:]]\{1,\}\).*$/\1/'
1776 _comp_compgen -a -- -W "$puppet_doc_list"
1778 diff -pruN bash-completion-2.14.0.old/completions/pydoc bash-completion-2.14.0/completions/pydoc
1779 --- bash-completion-2.14.0.old/completions/pydoc 2024-05-09 10:40:56.000000000 +0200
1780 +++ bash-completion-2.14.0/completions/pydoc 2024-06-16 21:23:04.397456624 +0200
1781 @@ -16,7 +16,7 @@ _comp_cmd_pydoc()
1782 esac
1784 if [[ $cur == -* ]]; then
1785 - _comp_compgen_help - <<<"$("$1" | command sed -e "s/^pydoc3\{0,1\} //")"
1786 + _comp_compgen_help - <<<"$("$1" | command gsed -e "s/^pydoc3\{0,1\} //")"
1787 return
1790 @@ -32,7 +32,7 @@ _comp_cmd_pydoc()
1791 # Note that we don't do "pydoc modules" as it is known to hang on
1792 # some systems; _comp_xfunc_python_modules tends to work better and faster.
1793 _comp_compgen -a split -- "$("$1" keywords topics |
1794 - command sed -e '/^Here/d')"
1795 + command gsed -e '/^Here/d')"
1797 _comp_compgen -a filedir py
1798 } &&
1799 diff -pruN bash-completion-2.14.0.old/completions/pylint bash-completion-2.14.0/completions/pylint
1800 --- bash-completion-2.14.0.old/completions/pylint 2024-05-09 10:40:56.000000000 +0200
1801 +++ bash-completion-2.14.0/completions/pylint 2024-06-16 21:23:04.711775523 +0200
1802 @@ -11,10 +11,10 @@ _comp_cmd_pylint__message_ids()
1803 local msgs="$(
1804 set -o pipefail
1805 "$1" --list-msgs-enabled 2>/dev/null |
1806 - command sed -ne "$filter" |
1807 - command sed -ne 's/^[[:space:]]\{1,\}\([a-z-]\{6,\}\).*/\1/p' ||
1808 + command gsed -ne "$filter" |
1809 + command gsed -ne 's/^[[:space:]]\{1,\}\([a-z-]\{6,\}\).*/\1/p' ||
1810 "$1" --list-msgs 2>/dev/null |
1811 - command sed -ne 's/^:\([a-z-]\{6,\}\).*/\1/p'
1812 + command gsed -ne 's/^:\([a-z-]\{6,\}\).*/\1/p'
1814 _comp_delimited , -W "$msgs"
1816 diff -pruN bash-completion-2.14.0.old/completions/pytest bash-completion-2.14.0/completions/pytest
1817 --- bash-completion-2.14.0.old/completions/pytest 2024-05-09 10:40:56.000000000 +0200
1818 +++ bash-completion-2.14.0/completions/pytest 2024-06-16 21:23:04.477153621 +0200
1819 @@ -3,7 +3,7 @@
1820 _comp_cmd_pytest__option_choice_args()
1822 local modes=$("$1" "$2=bash-completion-nonexistent" 2>&1 |
1823 - command sed -e 's/[^[:space:][:alnum:]_-]\{1,\}//g' \
1824 + command gsed -e 's/[^[:space:][:alnum:]_-]\{1,\}//g' \
1825 -ne 's/.*choose from //p')
1826 _comp_compgen -a -- -W '$modes'
1828 diff -pruN bash-completion-2.14.0.old/completions/qdbus bash-completion-2.14.0/completions/qdbus
1829 --- bash-completion-2.14.0.old/completions/qdbus 2024-05-09 10:40:56.000000000 +0200
1830 +++ bash-completion-2.14.0/completions/qdbus 2024-06-16 21:23:04.845585099 +0200
1831 @@ -6,7 +6,7 @@ _comp_cmd_qdbus()
1832 _comp_initialize -- "$@" || return
1834 _comp_compgen_split -- "$(
1835 - command "${words[@]::cword}" 2>/dev/null | command sed 's/(.*)//'
1836 + command "${words[@]::cword}" 2>/dev/null | command gsed 's/(.*)//'
1838 } &&
1839 complete -F _comp_cmd_qdbus qdbus dcop
1840 diff -pruN bash-completion-2.14.0.old/completions/reportbug bash-completion-2.14.0/completions/reportbug
1841 --- bash-completion-2.14.0.old/completions/reportbug 2024-05-09 10:40:56.000000000 +0200
1842 +++ bash-completion-2.14.0/completions/reportbug 2024-06-16 21:23:04.631127752 +0200
1843 @@ -33,7 +33,7 @@ _comp_cmd_reportbug()
1845 --tag | --ui | --interface | --type | --bts | --severity | --mode | -${noargopts}[TutBS])
1846 _comp_compgen_split -- "$("$1" "$prev" help 2>&1 |
1847 - command sed -ne '/^[[:space:]]/p')"
1848 + command gsed -ne '/^[[:space:]]/p')"
1849 return
1851 --editor | --mua | --mbox-reader-cmd | -${noargopts}e)
1852 diff -pruN bash-completion-2.14.0.old/completions/rpcdebug bash-completion-2.14.0/completions/rpcdebug
1853 --- bash-completion-2.14.0.old/completions/rpcdebug 2024-05-09 10:40:56.000000000 +0200
1854 +++ bash-completion-2.14.0/completions/rpcdebug 2024-06-16 21:23:04.403871033 +0200
1855 @@ -13,7 +13,7 @@ _comp_cmd_rpcdebug__flags()
1857 if [[ $module ]]; then
1858 _comp_compgen_split -- "$(rpcdebug -vh 2>&1 |
1859 - command sed -ne 's/^'"$module"'[[:space:]]\{1,\}//p')"
1860 + command gsed -ne 's/^'"$module"'[[:space:]]\{1,\}//p')"
1864 diff -pruN bash-completion-2.14.0.old/completions/rpm bash-completion-2.14.0/completions/rpm
1865 --- bash-completion-2.14.0.old/completions/rpm 2024-05-09 10:40:56.000000000 +0200
1866 +++ bash-completion-2.14.0/completions/rpm 2024-06-16 21:23:04.710695019 +0200
1867 @@ -13,7 +13,7 @@ _comp_cmd_rpm__compgen_installed_package
1868 if [[ -r /var/log/rpmpkgs &&
1869 /var/log/rpmpkgs -nt /var/lib/rpm/Packages ]]; then
1870 # using RHL 7.2 or later - this is quicker than querying the DB
1871 - _comp_compgen_split -- "$(command sed -ne \
1872 + _comp_compgen_split -- "$(command gsed -ne \
1873 's|^\([^[:space:]]\{1,\}\)-[^[:space:]-]\{1,\}-[^[:space:]-]\{1,\}\.rpm$|\1|p' \
1874 /var/log/rpmpkgs)"
1875 elif type rpmqpack &>/dev/null; then
1876 @@ -37,7 +37,7 @@ _comp_cmd_rpm__groups()
1877 _comp_cmd_rpm__macros()
1879 # get a list of macros
1880 - _comp_compgen_split -- "$("${1:-rpm}" --showrc | command sed -ne \
1881 + _comp_compgen_split -- "$("${1:-rpm}" --showrc | command gsed -ne \
1882 's/^-\{0,1\}[0-9]\{1,\}[:=][[:space:]]\{1,\}\([^[:space:](]\{3,\}\).*/%\1/p')"
1885 @@ -46,7 +46,7 @@ _comp_cmd_rpm__buildarchs()
1887 # Case-insensitive BRE to match "compatible build archs"
1888 local regex_header='[cC][oO][mM][pP][aA][tT][iI][bB][lL][eE][[:space:]]\{1,\}[bB][uU][iI][lL][dD][[:space:]]\{1,\}[aA][rR][cC][hH][sS]'
1889 - _comp_compgen_split -- "$("${1:-rpm}" --showrc | command sed -ne \
1890 + _comp_compgen_split -- "$("${1:-rpm}" --showrc | command gsed -ne \
1891 "s/^[[:space:]]*${regex_header}[[:space:]]*:[[:space:]]*\(.*\)/\1/p")"
1894 @@ -120,7 +120,7 @@ _comp_cmd_rpm()
1895 esac
1896 _comp_compgen_split -l -- "$("$1" -qa --nodigest \
1897 --nosignature --queryformat="\"$fmt\\n\"" 2>/dev/null |
1898 - command grep -vF '(none)')"
1899 + command ggrep -vF '(none)')"
1901 return
1903 @@ -281,7 +281,7 @@ _comp_cmd_rpmbuild()
1904 _comp_cmd_rpm__configdir
1905 if [[ $cfgdir ]]; then
1906 _comp_compgen_split -- "$(command ls "$cfgdir" 2>/dev/null |
1907 - command sed -ne 's/^brp-//p')"
1908 + command gsed -ne 's/^brp-//p')"
1911 --define | --with | --without | -${noargopts}D)
1912 diff -pruN bash-completion-2.14.0.old/completions/rsync bash-completion-2.14.0/completions/rsync
1913 --- bash-completion-2.14.0.old/completions/rsync 2024-05-09 10:40:56.000000000 +0200
1914 +++ bash-completion-2.14.0/completions/rsync 2024-06-16 21:23:04.543475059 +0200
1915 @@ -65,7 +65,7 @@ _comp_cmd_rsync()
1916 # meaning before v3.2.0) contain the following unusual line in
1917 # --help:
1918 # "(-h) --help show this help (-h is --help only if used alone)"
1919 - _comp_compgen -Rv tmp help - <<<"$("$1" --help 2>&1 | command sed -e 's/^([^)]*)//')"
1920 + _comp_compgen -Rv tmp help - <<<"$("$1" --help 2>&1 | command gsed -e 's/^([^)]*)//')"
1922 _comp_compgen -- -W '"${tmp[@]}"
1923 --daemon --old-d{,irs}
1924 diff -pruN bash-completion-2.14.0.old/completions/sbopkg bash-completion-2.14.0/completions/sbopkg
1925 --- bash-completion-2.14.0.old/completions/sbopkg 2024-05-09 10:40:56.000000000 +0200
1926 +++ bash-completion-2.14.0/completions/sbopkg 2024-06-16 21:23:04.412412334 +0200
1927 @@ -61,7 +61,7 @@ _comp_cmd_sbopkg()
1928 local file=${REPO_ROOT-}/${REPO_NAME-}/${REPO_BRANCH-}/SLACKBUILDS.TXT
1929 [[ -f $file && -r $file ]] || return
1931 - _comp_compgen_split -l -- "$(command sed -ne "s/^SLACKBUILD NAME: //p" \
1932 + _comp_compgen_split -l -- "$(command gsed -ne "s/^SLACKBUILD NAME: //p" \
1933 "$file")"
1934 _comp_compgen -aC "$QUEUEDIR" -- -f -X "!*.sqf"
1935 } &&
1936 diff -pruN bash-completion-2.14.0.old/completions/screen bash-completion-2.14.0/completions/screen
1937 --- bash-completion-2.14.0.old/completions/screen 2024-05-09 10:40:56.000000000 +0200
1938 +++ bash-completion-2.14.0/completions/screen 2024-06-16 21:23:04.691445336 +0200
1939 @@ -3,7 +3,7 @@
1940 _comp_cmd_screen__sessions()
1942 local -a sessions
1943 - _comp_split sessions "$(command screen -ls | command sed -ne \
1944 + _comp_split sessions "$(command screen -ls | command gsed -ne \
1945 's|^\t\{1,\}\([0-9]\{1,\}\.[^\t]\{1,\}\).*'"$1"'.*$|\1|p')" || return
1946 if [[ $cur == +([0-9])?(.*) ]]; then
1947 # Complete sessions including pid prefixes
1948 diff -pruN bash-completion-2.14.0.old/completions/shellcheck bash-completion-2.14.0/completions/shellcheck
1949 --- bash-completion-2.14.0.old/completions/shellcheck 2024-05-09 10:40:56.000000000 +0200
1950 +++ bash-completion-2.14.0/completions/shellcheck 2024-06-16 21:23:04.726673200 +0200
1951 @@ -3,7 +3,7 @@
1952 _comp_cmd_shellcheck__optarg()
1954 local args=$("$1" --help 2>&1 |
1955 - command sed -e 's/,/ /g' -ne 's/^.*'"$2"'\>.*(\([^)]*\)).*/\1/p')
1956 + command gsed -e 's/,/ /g' -ne 's/^.*'"$2"'\>.*(\([^)]*\)).*/\1/p')
1957 _comp_compgen -a -- -W '$args'
1960 @@ -23,8 +23,8 @@ _comp_cmd_shellcheck()
1962 --format | -${noargopts}f)
1963 local args=$("$1" --format=nonexistent-format /dev/null 2>&1 |
1964 - command sed -ne '/^Supported formats/,//p' |
1965 - command sed -ne '/^[[:space:]]/p')
1966 + command gsed -ne '/^Supported formats/,//p' |
1967 + command gsed -ne '/^[[:space:]]/p')
1968 _comp_compgen -- -W '$args'
1969 return
1971 diff -pruN bash-completion-2.14.0.old/completions/sitecopy bash-completion-2.14.0/completions/sitecopy
1972 --- bash-completion-2.14.0.old/completions/sitecopy 2024-05-09 10:40:56.000000000 +0200
1973 +++ bash-completion-2.14.0/completions/sitecopy 2024-06-16 21:23:04.460275543 +0200
1974 @@ -44,7 +44,7 @@ _comp_cmd_sitecopy()
1976 if [[ -r ~/.sitecopyrc ]]; then
1977 _comp_compgen_split -- "$("$1" -v |
1978 - command sed -n '/^Site:/s/Site: //p')"
1979 + command gsed -n '/^Site:/s/Site: //p')"
1981 } &&
1982 complete -F _comp_cmd_sitecopy -o default sitecopy
1983 diff -pruN bash-completion-2.14.0.old/completions/slapt-get bash-completion-2.14.0/completions/slapt-get
1984 --- bash-completion-2.14.0.old/completions/slapt-get 2024-05-09 10:40:56.000000000 +0200
1985 +++ bash-completion-2.14.0/completions/slapt-get 2024-06-16 21:23:04.494226712 +0200
1986 @@ -62,14 +62,14 @@ _comp_cmd_slapt_get()
1987 local name=${cur%%-*}
1988 _comp_compgen_split -l -- "$(
1989 LC_ALL=C "$1" -c "$config" --search "^$name" 2>/dev/null |
1990 - LC_ALL=C command sed -ne "/^$cur/{s/ .*$//;p;}"
1991 + LC_ALL=C command gsed -ne "/^$cur/{s/ .*$//;p;}"
1993 return
1995 avl) # --install|-i|
1996 _comp_compgen_split -l -- "$(
1997 LC_ALL=C "$1" -c "$config" --available 2>/dev/null |
1998 - LC_ALL=C command sed -ne "/^$cur/{s/ .*$//;p;}"
1999 + LC_ALL=C command gsed -ne "/^$cur/{s/ .*$//;p;}"
2001 return
2003 diff -pruN bash-completion-2.14.0.old/completions/slapt-src bash-completion-2.14.0/completions/slapt-src
2004 --- bash-completion-2.14.0.old/completions/slapt-src 2024-05-09 10:40:56.000000000 +0200
2005 +++ bash-completion-2.14.0/completions/slapt-src 2024-06-16 21:23:04.464532319 +0200
2006 @@ -59,13 +59,13 @@ _comp_cmd_slapt_src()
2007 _comp_compgen_split -l -- "$(
2008 LC_ALL=C
2009 "$1" --config "$config" --search "^$name" 2>/dev/null |
2010 - command sed -ne "/^$cur/{s/^$name:\([^ ]*\) .*$/\1/;p;}"
2011 + command gsed -ne "/^$cur/{s/^$name:\([^ ]*\) .*$/\1/;p;}"
2013 else
2014 _comp_compgen_split -l -- "$(
2015 LC_ALL=C
2016 "$1" --config "$config" --search "^$cur" 2>/dev/null |
2017 - command sed -ne "/^$cur/{s/ .*$//;p;}"
2018 + command gsed -ne "/^$cur/{s/ .*$//;p;}"
2021 } &&
2022 diff -pruN bash-completion-2.14.0.old/completions/smbclient bash-completion-2.14.0/completions/smbclient
2023 --- bash-completion-2.14.0.old/completions/smbclient 2024-05-09 10:40:56.000000000 +0200
2024 +++ bash-completion-2.14.0/completions/smbclient 2024-06-16 21:23:04.721335224 +0200
2025 @@ -16,7 +16,7 @@ _comp_cmd_smbclient__hosts()
2027 if [[ ${BASH_COMPLETION_CMD_SMBTREE_SCAN-${COMP_SAMBA_SCAN-}} ]]; then
2028 _comp_compgen_split -- "$(smbtree -N -S |
2029 - command sed -ne 's/^[[:space:]]*\\\\*\([^[:space:]]*\).*/\1/p')"
2030 + command gsed -ne 's/^[[:space:]]*\\\\*\([^[:space:]]*\).*/\1/p')"
2034 diff -pruN bash-completion-2.14.0.old/completions/ss bash-completion-2.14.0/completions/ss
2035 --- bash-completion-2.14.0.old/completions/ss 2024-05-09 10:40:56.000000000 +0200
2036 +++ bash-completion-2.14.0/completions/ss 2024-06-16 21:23:04.793594425 +0200
2037 @@ -17,7 +17,7 @@ _comp_cmd_ss()
2039 --query | -${noargopts}A)
2040 local queries=$("$1" --help |
2041 - command sed -e 's/|/ /g' -ne 's/.*QUERY := {\([^}]*\)}.*/\1/p')
2042 + command gsed -e 's/|/ /g' -ne 's/.*QUERY := {\([^}]*\)}.*/\1/p')
2043 _comp_delimited , -W '$queries'
2044 return
2046 diff -pruN bash-completion-2.14.0.old/completions/ssh bash-completion-2.14.0/completions/ssh
2047 --- bash-completion-2.14.0.old/completions/ssh 2024-05-09 10:40:56.000000000 +0200
2048 +++ bash-completion-2.14.0/completions/ssh 2024-06-16 21:23:04.692630330 +0200
2049 @@ -476,7 +476,7 @@ _comp_xfunc_scp_compgen_remote_files()
2051 # unescape (3 backslashes to 1 for chars we escaped)
2052 # shellcheck disable=SC2090
2053 - _path=$(command sed -e 's/\\\\\\\('"$_comp_cmd_scp__path_esc"'\)/\\\1/g' <<<"$_path")
2054 + _path=$(command gsed -e 's/\\\\\\\('"$_comp_cmd_scp__path_esc"'\)/\\\1/g' <<<"$_path")
2056 # default to home dir of specified user on remote host
2057 if [[ ! $_path ]]; then
2058 @@ -489,14 +489,14 @@ _comp_xfunc_scp_compgen_remote_files()
2059 # shellcheck disable=SC2090
2060 _files=$(ssh -o 'Batchmode yes' "$_userhost" \
2061 command ls -aF1dL "$_path*" 2>/dev/null |
2062 - command sed -e 's/'"$_comp_cmd_scp__path_esc"'/\\\\\\&/g' -e '/[^\/]$/d')
2063 + command gsed -e 's/'"$_comp_cmd_scp__path_esc"'/\\\\\\&/g' -e '/[^\/]$/d')
2064 else
2065 # escape problematic characters; remove executables, aliases, pipes
2066 # and sockets; add space at end of file names
2067 # shellcheck disable=SC2090
2068 _files=$(ssh -o 'Batchmode yes' "$_userhost" \
2069 command ls -aF1dL "$_path*" 2>/dev/null |
2070 - command sed -e 's/'"$_comp_cmd_scp__path_esc"'/\\\\\\&/g' -e 's/[*@|=]$//g' \
2071 + command gsed -e 's/'"$_comp_cmd_scp__path_esc"'/\\\\\\&/g' -e 's/[*@|=]$//g' \
2072 -e 's/[^\/]$/& /g')
2074 _comp_compgen -R split -l -- "$_files"
2075 @@ -526,13 +526,13 @@ _comp_xfunc_scp_compgen_local_files()
2076 if [[ $_dirsonly ]]; then
2077 _comp_compgen -U files split -l -- "$(
2078 command ls -aF1dL "${files[@]}" 2>/dev/null |
2079 - command sed -e "s/$_comp_cmd_scp__path_esc/\\\\&/g" \
2080 + command gsed -e "s/$_comp_cmd_scp__path_esc/\\\\&/g" \
2081 -e '/[^\/]$/d' -e "s/^/${1-}/"
2083 else
2084 _comp_compgen -U files split -l -- "$(
2085 command ls -aF1dL "${files[@]}" 2>/dev/null |
2086 - command sed -e "s/$_comp_cmd_scp__path_esc/\\\\&/g" \
2087 + command gsed -e "s/$_comp_cmd_scp__path_esc/\\\\&/g" \
2088 -e 's/[*@|=]$//g' -e 's/[^\/]$/& /g' -e "s/^/${1-}/"
2091 diff -pruN bash-completion-2.14.0.old/completions/strings bash-completion-2.14.0/completions/strings
2092 --- bash-completion-2.14.0.old/completions/strings 2024-05-09 10:40:56.000000000 +0200
2093 +++ bash-completion-2.14.0/completions/strings 2024-06-16 21:23:04.737208817 +0200
2094 @@ -18,12 +18,12 @@ _comp_cmd_strings()
2096 --target | -${noargopts}T)
2097 _comp_compgen_split -- "$(LC_ALL=C "$1" --help 2>/dev/null |
2098 - command sed -ne 's/: supported targets: \(.*\)/\1/p')"
2099 + command gsed -ne 's/: supported targets: \(.*\)/\1/p')"
2100 return
2102 --encoding | -${noargopts}e)
2103 _comp_compgen_split -F , -- "$(LC_ALL=C "$1" --help 2>/dev/null |
2104 - command sed -ne 's/.*--encoding={\([^}]*\)}.*/\1/p')"
2105 + command gsed -ne 's/.*--encoding={\([^}]*\)}.*/\1/p')"
2106 return
2108 esac
2109 @@ -34,7 +34,7 @@ _comp_cmd_strings()
2110 # macOS: ... [-t format] [-number] [-n number] ...
2111 _comp_compgen_help ||
2112 _comp_compgen_usage - <<<"$("$1" --help 2>&1 |
2113 - command sed -e "s/\[-number\]//")"
2114 + command gsed -e "s/\[-number\]//")"
2115 [[ ${COMPREPLY-} == *= ]] && compopt -o nospace
2116 return
2117 elif [[ $cur == @* ]]; then
2118 diff -pruN bash-completion-2.14.0.old/completions/svcadm bash-completion-2.14.0/completions/svcadm
2119 --- bash-completion-2.14.0.old/completions/svcadm 2020-01-11 19:58:32.000000000 +0100
2120 +++ bash-completion-2.14.0/completions/svcadm 2024-06-16 21:23:04.371675096 +0200
2121 @@ -25,7 +25,7 @@
2122 _gen_zoneadm_list()
2124 if [[ ${prev} =~ "-z" ]]; then
2125 - local zones="$(zoneadm list -c | grep -v '^global$')"
2126 + local zones="$(zoneadm list -c | ggrep -v '^global$')"
2127 COMPREPLY=( $(compgen -W "${zones}" -- ${cur}) )
2130 @@ -133,7 +133,7 @@ _svcadm()
2131 else
2132 # svcadm [-v] milestone [-d] milestone_FMRI
2133 if [[ ${line} =~ -S ]]; then
2134 - command_list="$(echo ${command_list} | sed -e 's/milestone//')"
2135 + command_list="$(echo ${command_list} | gsed -e 's/milestone//')"
2137 COMPREPLY=( $(compgen -W "${command_list}" -- ${cur}) )
2139 diff -pruN bash-completion-2.14.0.old/completions/svk bash-completion-2.14.0/completions/svk
2140 --- bash-completion-2.14.0.old/completions/svk 2024-05-09 10:40:56.000000000 +0200
2141 +++ bash-completion-2.14.0/completions/svk 2024-06-16 21:23:04.589075117 +0200
2142 @@ -198,7 +198,7 @@ _comp_cmd_svk()
2143 path=//
2145 _comp_compgen_split -- "$("$1" list "$path" 2>/dev/null |
2146 - command sed -e 's|\(.*\)|'"$path"'\1|')"
2147 + command gsed -e 's|\(.*\)|'"$path"'\1|')"
2150 _comp_compgen_filedir
2151 diff -pruN bash-completion-2.14.0.old/completions/sysbench bash-completion-2.14.0/completions/sysbench
2152 --- bash-completion-2.14.0.old/completions/sysbench 2024-05-09 10:40:56.000000000 +0200
2153 +++ bash-completion-2.14.0/completions/sysbench 2024-06-16 21:23:04.603849368 +0200
2154 @@ -75,7 +75,7 @@ _comp_cmd_sysbench()
2156 --db-driver)
2157 _comp_compgen_split -- "$("$1" --test=oltp help 2>/dev/null |
2158 - command sed -e '/^.*database drivers:/,/^$/!d' \
2159 + command gsed -e '/^.*database drivers:/,/^$/!d' \
2160 -ne 's/^ *\([^ ]*\) .*/\1/p')"
2161 return
2163 diff -pruN bash-completion-2.14.0.old/completions/tox bash-completion-2.14.0/completions/tox
2164 --- bash-completion-2.14.0.old/completions/tox 2024-05-09 10:40:56.000000000 +0200
2165 +++ bash-completion-2.14.0/completions/tox 2024-06-16 21:23:04.659627049 +0200
2166 @@ -33,7 +33,7 @@ _comp_cmd_tox()
2167 } 2>/dev/null
2169 [[ $envs ]] || envs=$(
2170 - command sed -e 's/,/ /g' -ne 's/^envlist[[:space:]]*=//p' \
2171 + command gsed -e 's/,/ /g' -ne 's/^envlist[[:space:]]*=//p' \
2172 tox.ini 2>/dev/null
2174 _comp_delimited , -X '*[{}]*' -W "$envs ALL"
2175 diff -pruN bash-completion-2.14.0.old/completions/tshark bash-completion-2.14.0/completions/tshark
2176 --- bash-completion-2.14.0.old/completions/tshark 2024-05-09 10:40:56.000000000 +0200
2177 +++ bash-completion-2.14.0/completions/tshark 2024-06-16 21:23:04.366312942 +0200
2178 @@ -23,7 +23,7 @@ _comp_cmd_tshark()
2179 _comp_compgen -c "${cur#*:}" filedir
2180 else
2181 [[ -v _comp_cmd_tshark__prefs ]] ||
2182 - _comp_cmd_tshark__prefs="$("$1" -G defaultprefs 2>/dev/null | command sed -ne 's/^#\{0,1\}\([a-z0-9_.-]\{1,\}:\).*/\1/p' |
2183 + _comp_cmd_tshark__prefs="$("$1" -G defaultprefs 2>/dev/null | command gsed -ne 's/^#\{0,1\}\([a-z0-9_.-]\{1,\}:\).*/\1/p' |
2184 tr '\n' ' ')"
2185 : ${prefix:=}
2186 _comp_compgen -c "${cur:${#prefix}}" -- -P "$prefix" \
2187 diff -pruN bash-completion-2.14.0.old/completions/valgrind bash-completion-2.14.0/completions/valgrind
2188 --- bash-completion-2.14.0.old/completions/valgrind 2024-05-09 10:40:56.000000000 +0200
2189 +++ bash-completion-2.14.0/completions/valgrind 2024-06-16 21:23:04.437868195 +0200
2190 @@ -72,7 +72,7 @@ _comp_cmd_valgrind()
2191 --+([-A-Za-z0-9_]))
2192 # shellcheck disable=SC2086
2193 local value=$("$1" --help-debug $tool 2>/dev/null |
2194 - command sed \
2195 + command gsed \
2196 -ne "s|^[[:blank:]]*$prev=\([^[:blank:]]\{1,\}\).*|\1|p")
2197 case $value in
2198 \<file*\>)
2199 diff -pruN bash-completion-2.14.0.old/completions/wget bash-completion-2.14.0/completions/wget
2200 --- bash-completion-2.14.0.old/completions/wget 2024-05-09 10:40:56.000000000 +0200
2201 +++ bash-completion-2.14.0/completions/wget 2024-06-16 21:23:04.351616152 +0200
2202 @@ -123,7 +123,7 @@ _comp_cmd_wget()
2203 return
2205 --user | --http-user | --proxy-user | --ftp-user)
2206 - _comp_compgen_split -- "$(command sed -n \
2207 + _comp_compgen_split -- "$(command gsed -n \
2208 '/^login/s/^[[:blank:]]*login[[:blank:]]//p' ~/.netrc \
2209 2>/dev/null)"
2210 return
2211 diff -pruN bash-completion-2.14.0.old/completions/wol bash-completion-2.14.0/completions/wol
2212 --- bash-completion-2.14.0.old/completions/wol 2024-05-09 10:40:56.000000000 +0200
2213 +++ bash-completion-2.14.0/completions/wol 2024-06-16 21:23:04.807512412 +0200
2214 @@ -17,7 +17,7 @@ _comp_cmd_wol()
2215 _comp_compgen_split -- "$({
2216 ip -c=never addr show || ip addr show || ifconfig -a
2217 } 2>/dev/null |
2218 - command sed \
2219 + command gsed \
2220 -ne 's/.*[[:space:]]Bcast:\([^[:space:]]*\).*/\1/p' \
2221 -ne 's/.*inet.*[[:space:]]brd[[:space:]]\([^[:space:]]*\).*/\1/p' \
2222 -ne 's/.*[[:space:]]broadcast[[:space:]]\{1,\}\([^[:space:]]*\).*/\1/p')"
2223 diff -pruN bash-completion-2.14.0.old/completions/wvdial bash-completion-2.14.0/completions/wvdial
2224 --- bash-completion-2.14.0.old/completions/wvdial 2024-05-09 10:40:56.000000000 +0200
2225 +++ bash-completion-2.14.0/completions/wvdial 2024-06-16 21:23:04.352628893 +0200
2226 @@ -33,7 +33,7 @@ _comp_cmd_wvdial()
2227 done
2228 # parse config files for sections and
2229 # remove default section
2230 - _comp_compgen_split -l -X 'Defaults' -- "$(command sed -ne \
2231 + _comp_compgen_split -l -X 'Defaults' -- "$(command gsed -ne \
2232 's/^\[Dialer \(.*\)\]$/\1/p' "$config" 2>/dev/null)"
2233 # escape spaces
2234 COMPREPLY=("${COMPREPLY[@]// /\\ }")
2235 diff -pruN bash-completion-2.14.0.old/completions/xgamma bash-completion-2.14.0/completions/xgamma
2236 --- bash-completion-2.14.0.old/completions/xgamma 2024-05-09 10:40:56.000000000 +0200
2237 +++ bash-completion-2.14.0/completions/xgamma 2024-06-16 21:23:04.386778448 +0200
2238 @@ -7,7 +7,7 @@ _comp_cmd_xgamma()
2240 case "$prev" in
2241 -screen)
2242 - local screens=$(xrandr --query 2>/dev/null | command sed -n \
2243 + local screens=$(xrandr --query 2>/dev/null | command gsed -n \
2244 '/^Screen /s|^Screen \{1,\}\(.*\):.*$|\1|p' 2>/dev/null)
2245 _comp_compgen -- -W "$screens"
2246 return
2247 @@ -30,7 +30,7 @@ _comp_cmd_xgamma()
2248 compopt -o nospace
2249 elif [[ $cur == :*.* ]]; then
2250 # local screen numbers
2251 - local t screens=$(xrandr --query 2>/dev/null | command sed -ne \
2252 + local t screens=$(xrandr --query 2>/dev/null | command gsed -ne \
2253 '/^Screen /s|^Screen \{1,\}\(.*\):.*$|\1|p' 2>/dev/null)
2254 t="${cur#:}"
2255 _comp_compgen -c "${cur##*.}" -- -P "${t%.*}." -W '$screens'
2256 diff -pruN bash-completion-2.14.0.old/completions/xrandr bash-completion-2.14.0/completions/xrandr
2257 --- bash-completion-2.14.0.old/completions/xrandr 2024-05-09 10:40:56.000000000 +0200
2258 +++ bash-completion-2.14.0/completions/xrandr 2024-06-16 21:23:04.484575567 +0200
2259 @@ -9,20 +9,20 @@ _comp_cmd_xrandr__compgen_monitors()
2261 _comp_compgen_split -- "$(
2262 "$1" --listmonitors 2>/dev/null |
2263 - command sed -ne 's/.* [0-9]*: [+\*]*\([^ ]*\).*/\1/p'
2264 + command gsed -ne 's/.* [0-9]*: [+\*]*\([^ ]*\).*/\1/p'
2268 _comp_cmd_xrandr__compgen_providers()
2270 _comp_compgen_split -- "$("$1" --listproviders 2>/dev/null |
2271 - command sed -ne "s/.*cap:.*$2.* name:\([^ ]*\).*/\1/p")"
2272 + command gsed -ne "s/.*cap:.*$2.* name:\([^ ]*\).*/\1/p")"
2275 _comp_cmd_xrandr__compgen_modes()
2277 _comp_compgen_split -- "$(
2278 - "$1" -q 2>/dev/null | command sed \
2279 + "$1" -q 2>/dev/null | command gsed \
2280 -e "1,/^$2 / d" \
2281 -e '/connected/,$ d' \
2282 -e '/^[[:space:]]*h: / d' \
2283 @@ -34,7 +34,7 @@ _comp_cmd_xrandr__compgen_modes()
2284 _comp_cmd_xrandr__compgen_all_modes()
2286 _comp_compgen_split -- "$(
2287 - "$1" -q 2>/dev/null | command sed \
2288 + "$1" -q 2>/dev/null | command gsed \
2289 -e '/^[^[:space:]].*/ d' \
2290 -e '/^[[:space:]]*h: / d' \
2291 -e '/^[[:space:]]*v: / d' \
2292 @@ -161,13 +161,13 @@ _comp_cmd_xrandr()
2293 if [[ $has_output ]]; then
2294 _comp_compgen -v options help - <<<"$(
2295 "$1" --help 2>/dev/null |
2296 - command sed -e 's/ or /\n /g' -e 's/<[^>]*>]//g'
2297 + command gsed -e 's/ or /\n /g' -e 's/<[^>]*>]//g'
2299 else
2300 # if no output is specified, remove per-output options
2301 _comp_compgen -v options help - <<<"$(
2302 "$1" --help 2>/dev/null |
2303 - command sed -e '/^ -/!d' -e 's/ or /\n /g' -e 's/<[^>]*>]//g'
2304 + command gsed -e '/^ -/!d' -e 's/ or /\n /g' -e 's/<[^>]*>]//g'
2308 diff -pruN bash-completion-2.14.0.old/completions/xsltproc bash-completion-2.14.0/completions/xsltproc
2309 --- bash-completion-2.14.0.old/completions/xsltproc 2024-05-09 10:40:56.000000000 +0200
2310 +++ bash-completion-2.14.0/completions/xsltproc 2024-06-16 21:23:04.839327065 +0200
2311 @@ -16,7 +16,7 @@ _comp_cmd_xsltproc()
2313 --encoding)
2314 # some aliases removed
2315 - local encodings=$(iconv -l | command sed -e 's/\/.*//')
2316 + local encodings=$(iconv -l | command gsed -e 's/\/.*//')
2317 _comp_compgen -- -X '@(UTF[1378]|8859|ISO[0-9_])*' -W '$encodings'
2318 return
2320 diff -pruN bash-completion-2.14.0.old/completions/zfs bash-completion-2.14.0/completions/zfs
2321 --- bash-completion-2.14.0.old/completions/zfs 2020-01-11 19:58:32.000000000 +0100
2322 +++ bash-completion-2.14.0/completions/zfs 2024-06-16 21:23:04.646790091 +0200
2323 @@ -141,7 +141,7 @@ __zfs_match_multiple_snapshots()
2324 return 1
2326 local range_start=$(expr "$cur" : '\(.*%\)')
2327 - $__ZFS_CMD list -H -o name -s name -t snapshot -d 1 $base_dataset | sed 's$.*@$'$range_start'$g'
2328 + $__ZFS_CMD list -H -o name -s name -t snapshot -d 1 $base_dataset | gsed 's$.*@$'$range_start'$g'
2330 else
2331 __zfs_match_snapshot_or_bookmark
2332 diff -pruN bash-completion-2.14.0.old/completions/zones bash-completion-2.14.0/completions/zones
2333 --- bash-completion-2.14.0.old/completions/zones 2020-01-11 19:58:32.000000000 +0100
2334 +++ bash-completion-2.14.0/completions/zones 2024-06-16 21:23:04.433538613 +0200
2335 @@ -31,7 +31,7 @@ _zlogin()
2336 esac
2337 else
2338 # Provide running zone names
2339 - local zones=$(zoneadm list | grep -v '^global$')
2340 + local zones=$(zoneadm list | ggrep -v '^global$')
2341 COMPREPLY=( $(compgen -W "${zones}" -- ${cur}) )
2344 @@ -45,7 +45,7 @@ _dash_z_zone()
2346 if [[ ${prev} =~ "-z" ]]; then
2347 # Provide running zone names
2348 - local zones="$(zoneadm list -c | grep -v '^global$')"
2349 + local zones="$(zoneadm list -c | ggrep -v '^global$')"
2350 COMPREPLY=( $(compgen -W "${zones}" -- ${cur}) )