Skip to content

Commit 56090ae

Browse files
committed
Replaces egrep with grep -E in gvm_export_path function
`egrep` is listed as deprecated and in Fedora 38, is outputting the message "warnin: egrep is obsolescent". According to #431, the official release notes from Grep 3.8 state egrep has been deprecated since 2007. This PR replaces `egrep` in gvm_export_path with `grep -E`. `egrep` is mentioned in a couple of the files in `./examples/native/`, but as I don't think they're critical to the use of GVM, I have not attempted to replace them. Fixes #431 Signed-off-by: Chris Collins <[email protected]>
1 parent 19365a6 commit 56090ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/function/gvm_export_path

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
function gvm_export_path() {
3-
export PATH="$GVM_ROOT/bin:$(echo "$PATH" | tr ":" "\n" | "$GREP_PATH" -v '^$' | egrep -v "$GVM_ROOT/(pkgsets|gos|bin)" | tr "\n" ":" | sed 's/:*$//')"
3+
export PATH="$GVM_ROOT/bin:$(echo "$PATH" | tr ":" "\n" | "$GREP_PATH" -v '^$' | grep -E -v "$GVM_ROOT/(pkgsets|gos|bin)" | tr "\n" ":" | sed 's/:*$//')"
44
export GVM_PATH_BACKUP="$PATH"
55
}
66

0 commit comments

Comments
 (0)