Skip to content

Commit

Permalink
Fix tools/compare-oplist-interp-order.sh on *BSD
Browse files Browse the repository at this point in the history
\s and \S aren't tokens in BSD regex.
  • Loading branch information
Kaiepi committed Jun 24, 2018
1 parent f125679 commit 821cfd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/compare-oplist-interp-order.sh
Expand Up @@ -11,10 +11,10 @@ else
MAX_OPT_LEN="${#OPT_SHOW_DEP}"
fi
get_oplist_order () {
grep -vE '(^#)|(^\s*$)' src/core/oplist | sed -E 's/^(\S+)\s*.*/\1/'
grep -vE '(^#)|(^[[:space:]]*$)' src/core/oplist | sed -E 's/^([^[:space:]]+)[[:space:]]*.*/\1/'
}
get_interp_order () {
grep -F 'OP(' src/core/interp.c | grep -v '^#' | sed -E 's/^\s*OP\(([^)]+)\).*/\1/'
grep -F 'OP(' src/core/interp.c | grep -v '^#' | sed -E 's/^[[:space:]]*OP\(([^)]+)\).*/\1/'
}
filter_funct () {
grep -v DEPRECATED
Expand Down

0 comments on commit 821cfd5

Please sign in to comment.