summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-02-17 20:59:17 +0000
committerKatolaZ <katolaz@freaknet.org>2019-02-17 20:59:17 +0000
commit73eb9e630819272b21342ba7643e4ec552542a1b (patch)
tree82331f9708588054e074b4878a67d48ed61fe894
parentfdeee8ccf213f7e9f74b81abc7f0f96b28b35a6d (diff)
use -E instead of -r in sedHEADmaster
-rwxr-xr-xgophed4
1 files changed, 2 insertions, 2 deletions
diff --git a/gophed b/gophed
index eaf0345..d621c0c 100755
--- a/gophed
+++ b/gophed
@@ -69,7 +69,7 @@ fi
if [ "$script_name" = "gophed" ] || [ "$script_name" = "v" ]; then
- sel="$(printf '%s' "$1" | sed -r 's:/:+:g')"
+ sel="$(printf '%s' "$1" | sed -E 's:/:+:g')"
TMPFILE="$(mktemp "/tmp/gophed_${2}_${sel}_$3.XXXXXXXXXXXXXXXXXXX")"
goto_url "$1" > "$TMPFILE"
while read -r line; do echo "$line"; done | ed -p "$PROMPT" "$TMPFILE"
@@ -84,7 +84,7 @@ if [ "$script_name" = "g" ] || [ "$script_name" = "d" ]; then
PORT="$(printf '%s' "$LINE" | awk -F ' ' '{ match($4,/[[:digit:]]+/); print substr($4,RSTART,RLENGTH) }')"
if [ "$script_name" = "g" ]; then
- SEL="$(printf '%s' "$RESOURCE" | sed -r 's:/:+:g')"
+ SEL="$(printf '%s' "$RESOURCE" | sed -E 's:/:+:g')"
TMPFILE="$(mktemp "/tmp/gophed_${HOST}_${SEL}_$PORT.XXXXXXXXXXXXXXXXXXX")"
go "$RESOURCE" "$HOST" "$PORT" > "$TMPFILE"
while read -r line; do echo "$line"; done | ed -p "$PROMPT" "$TMPFILE"