[Rpm-maint] [rpm-software-management/rpm] Shell-like escaping support in %files (PR #1903)
Michal Domonkos
notifications at github.com
Fri Feb 4 17:30:05 UTC 2022
> > * [ ] What about already escaped chars in quotes? `"/foo\[bar\]"`
>
> Should this be a syntax error?
I actually lean towards this being taken literally, because that's what the (new) quotation semantics will be. It's also how e.g. `bash` does it:
```
$ touch "foo[bar]" fooa foob foor
$ ls foo[bar]
fooa foob foor
$ ls "foo[bar]"
'foo[bar]'
$ ls "foo\[bar\]"
ls: cannot access 'foo\[bar\]': No such file or directory
```
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1903#issuecomment-1030199299
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/1903/c1030199299 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220204/956c2bb7/attachment.html>
More information about the Rpm-maint
mailing list