diff options
| author | Florian <florian.pabler@icloud.com> | 2025-10-21 10:42:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-21 11:42:04 +0300 |
| commit | caba9ae0347b5b52b65bccc27ff420cb77b71720 (patch) | |
| tree | d5df4d73a595d01ec26d2f0920a7fdae4ab1c14e | |
| parent | ac9258296117df625ba69d8e3cd1fe4883062c2b (diff) | |
| download | zsh-caba9ae0347b5b52b65bccc27ff420cb77b71720.tar.gz zsh-caba9ae0347b5b52b65bccc27ff420cb77b71720.tar.bz2 zsh-caba9ae0347b5b52b65bccc27ff420cb77b71720.zip | |
fix(ssh): use `grep -E` instead of `egrep` (#13380)
| -rw-r--r-- | plugins/ssh/ssh.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ssh/ssh.plugin.zsh b/plugins/ssh/ssh.plugin.zsh index b5b050536..24ad88028 100644 --- a/plugins/ssh/ssh.plugin.zsh +++ b/plugins/ssh/ssh.plugin.zsh @@ -5,7 +5,7 @@ _ssh_configfile="$HOME/.ssh/config" if [[ -f "$_ssh_configfile" ]]; then _ssh_hosts=($( - egrep '^Host.*' "$_ssh_configfile" |\ + grep -E '^Host.*' "$_ssh_configfile" |\ awk '{for (i=2; i<=NF; i++) print $i}' |\ sort |\ uniq |\ |
