summaryrefslogtreecommitdiffstats
path: root/lex.yy.c.shipped
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-07-03 16:06:17 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-07-03 16:06:17 -0700
commitccb998581d8ba1e2f8f9c56768d57e32c51777c5 (patch)
treef29a4d79f4dfa91880ca415c85229ea80e83d89b /lex.yy.c.shipped
parentfc4d580aaa4bbd5908507596a429621e560b024b (diff)
downloadtxr-ccb998581d8ba1e2f8f9c56768d57e32c51777c5.tar.gz
txr-ccb998581d8ba1e2f8f9c56768d57e32c51777c5.tar.bz2
txr-ccb998581d8ba1e2f8f9c56768d57e32c51777c5.zip
suffix functions: ignore trailing slashes.
Another requirements tweak to short-suffix and long-suffix: ignore one or more trailing slashes, instead of just one. This harmonizes with base-name, which does same, that requirement being copies from the POSIX basename utility. * stream.c (short_suffix, long_suffix): If sl points to a trailing slash which is the start of a suffix that consists of nothing but trailing slashes, then we pretend it isn't there. * tests/018/path.tl: Adjusted two existing test cases, and added more. * txr.1: Documented.
Diffstat (limited to 'lex.yy.c.shipped')
0 files changed, 0 insertions, 0 deletions