From: Ian Jackson Date: Thu, 14 Nov 2019 14:03:18 +0000 (+0000) Subject: docs: Further corresponding new syntax X-Git-Tag: subdirmk/0.1~16 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?p=subdirmk.git;a=commitdiff_plain;h=08e0edf690f2ae65a6d2e82609da7562f55093ac;hp=f47abe52f80723f201ec529c2617a4e5a2c35f5a docs: Further corresponding new syntax Signed-off-by: Ian Jackson --- diff --git a/README b/README index 96664ec..7fdeef5 100644 --- a/README +++ b/README @@ -195,23 +195,13 @@ empty string). &/ => sub/dir/ or nothing &=/ => sub/dir or . -&,lc => $(top_srcdir)/sub/dir/lc -&,/ => $(top_srcdir)/sub/dir/ +&,lc => $(top_srcdir)/sub/dir/lc &,/ => $(top_srcdir)/sub/dir/ +&;lc => $(top_srcdir)/lc &;/ => $(top_srcdir)/ -&;lc => $(top_srcdir)/sub/dir/lc -&;/ => $(top_srcdir)/sub/dir/ - -&@lc => $(PWD)/sub/dir/lc -&@/ => $(PWD)/sub/dir/ - -&.lc => $(PWD)/lc -&./ => $(PWD)/ - -&@,lc => $(abs_top_srcdir)/sub/dir/lc -&@,/ => $(abs_top_srcdir)/sub/dir/ - -&@;lc => $(abs_top_srcdir)/sub/dir/lc -&@;/ => $(abs_top_srcdir)/sub/dir/ +&@lc => $(PWD)/sub/dir/lc &@/ => $(PWD)/sub/dir/ +&.lc => $(PWD)/lc &./ => $(PWD)/ +&@,lc => $(abs_top_srcdir)/sub/dir/lc &@,/ => $(abs_top_srcdir)/sub/dir/ +&@;lc => $(abs_top_srcdir)/lc &@;/ => $(abs_top_srcdir)/ In general: = return subdir without delimiter (not allowed with `,' `;' `@') @@ -231,13 +221,13 @@ So pathname syntax is a subset of: && => && for convenience in shell runes \& => & general escaping mechanism -& thing thing... & -&. thing thing... & &@. thing thing... & +& thing thing... & &@ thing thing... & + &. thing thing... & &, thing thing... & &@, thing thing... & &; thing thing... & &@; thing thing... & Convenience syntax for prefixing multiple filenames. Introduced by & followed by lwsp where lc could go. - Each lwsp-separated non-ws word is prefixed by &/ &./ &@./ + Each lwsp-separated non-ws word is prefixed by &/ etc. etc. respectively. No other & escapes are recognised. This processing continues until & preceded by lwsp, or until EOL (the end of the line), or \ then EOL.