diff options
author | Elliott Hughes <enh@google.com> | 2018-11-28 11:57:01 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-11-28 16:39:37 -0600 |
commit | 96014d82f809ae6c37f8c7c593558c01ceb563cf (patch) | |
tree | d6d2dbb267118e4992bb07493fc40e33f2b6de61 | |
parent | a24b0dd59e2e968deb9cc229eab0d0c3e1f1c9e9 (diff) | |
download | toybox-96014d82f809ae6c37f8c7c593558c01ceb563cf.tar.gz |
macOS: use -E rather than -r for sed extended regular expressions.
GNU sed supports -E, -r, and --regexp-extended. BSD sed only supports
-r.
-rwxr-xr-x | scripts/genconfig.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh index 533df600..3887b077 100755 --- a/scripts/genconfig.sh +++ b/scripts/genconfig.sh @@ -144,7 +144,7 @@ genconfig > generated/Config.in || rm generated/Config.in toys() { grep 'TOY(.*)' "$@" | grep -v TOYFLAG_NOFORK | grep -v "0))" | \ - sed -rn 's/([^:]*):.*(OLD|NEW)TOY\( *([a-zA-Z][^,]*) *,.*/\1:\3/p' + sed -En 's/([^:]*):.*(OLD|NEW)TOY\( *([a-zA-Z][^,]*) *,.*/\1:\3/p' } WORKING= |