Skip to content

Commit

Permalink
fix(openssl): Use sed -E for portability
Browse files Browse the repository at this point in the history
This makes this work on the BSD sed version that comes with macos.
See scop#1324
  • Loading branch information
yedayak committed Feb 8, 2025
1 parent 4ac918f commit 62b10b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/openssl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ _comp_cmd_openssl()

if ((cword == 1)); then
local commands
commands="$("$1" help 2>&1 | command sed -e '/commands\|help:/d')"
commands="$("$1" help 2>&1 | command sed -E '/commands|help:/d')"
_comp_compgen -- -W "$commands"
else
command=${words[1]}
Expand Down

0 comments on commit 62b10b3

Please sign in to comment.