diff options
author | Rob Landley <rob@landley.net> | 2019-09-19 09:15:47 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-09-19 09:15:47 -0500 |
commit | 139faf5195ce521fbef946de6b807642d1cb463e (patch) | |
tree | e2d24ee3801be412fa77573b5b4c4979d08d58e8 | |
parent | 03b79265b572ca98ff2d07ad68e130dd8f64636f (diff) | |
download | toybox-139faf5195ce521fbef946de6b807642d1cb463e.tar.gz |
Basename can have suffixes starting with a dash.
-rw-r--r-- | toys/posix/basename.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/basename.c b/toys/posix/basename.c index 7e16afe6..35fe6f46 100644 --- a/toys/posix/basename.c +++ b/toys/posix/basename.c @@ -5,7 +5,7 @@ * See http://opengroup.org/onlinepubs/9699919799/utilities/basename.html -USE_BASENAME(NEWTOY(basename, "<1as:", TOYFLAG_USR|TOYFLAG_BIN)) +USE_BASENAME(NEWTOY(basename, "^<1as:", TOYFLAG_USR|TOYFLAG_BIN)) config BASENAME bool "basename" |