aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-09-19 09:15:47 -0500
committerRob Landley <rob@landley.net>2019-09-19 09:15:47 -0500
commit139faf5195ce521fbef946de6b807642d1cb463e (patch)
treee2d24ee3801be412fa77573b5b4c4979d08d58e8 /toys
parent03b79265b572ca98ff2d07ad68e130dd8f64636f (diff)
downloadtoybox-139faf5195ce521fbef946de6b807642d1cb463e.tar.gz
Basename can have suffixes starting with a dash.
Diffstat (limited to 'toys')
-rw-r--r--toys/posix/basename.c2
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"