Skip to content

Commit

Permalink
style: use command to call sed
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Nov 27, 2023
1 parent 65ea699 commit 2e38286
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion completions/ps
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ _comp_cmd_ps()
"$1" --help
"$1" --help all
} 2>/dev/null |
sed -e "s/, [A-Za-z],/,/")" ||
command sed -e "s/, [A-Za-z],/,/")" ||
_comp_compgen_usage
fi
} &&
Expand Down
2 changes: 1 addition & 1 deletion completions/reportbug
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ _comp_cmd_reportbug()
;;
--tag | --ui | --interface | --type | --bts | --severity | --mode | -${noargopts}[TutBS])
_comp_compgen_split -- "$("$1" "$prev" help 2>&1 |
sed -ne '/^[[:space:]]/p')"
command sed -ne '/^[[:space:]]/p')"
return
;;
--editor | --mua | --mbox-reader-cmd | -${noargopts}e)
Expand Down
2 changes: 1 addition & 1 deletion completions/rsync
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ _comp_cmd_rsync()
# meaning before v3.2.0) contain the following unusual line in
# --help:
# "(-h) --help show this help (-h is --help only if used alone)"
_comp_compgen -Rv tmp help - <<<"$("$1" --help 2>&1 | sed -e 's/^([^)]*)//')"
_comp_compgen -Rv tmp help - <<<"$("$1" --help 2>&1 | command sed -e 's/^([^)]*)//')"

_comp_compgen -- -W '"${tmp[@]}"
--daemon --old-d{,irs}
Expand Down

0 comments on commit 2e38286

Please sign in to comment.