Skip to content

Commit f527a32

Browse files
dimo414rcaloras
authored andcommitted
Avoid sed's -E flag (#88)
Resolves #87
1 parent e5ebc33 commit f527a32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash-preexec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ __bp_preexec_invoke_exec() {
202202
fi
203203

204204
local this_command
205-
this_command=$(HISTTIMEFORMAT= builtin history 1 | sed -E '1 s/^ *[0-9]+[* ] //')
205+
this_command=$(HISTTIMEFORMAT= builtin history 1 | sed '1 s/^ *[0-9]\+[* ] //')
206206

207207
# Sanity check to make sure we have something to invoke our function with.
208208
if [[ -z "$this_command" ]]; then

0 commit comments

Comments
 (0)