[Rpm-maint] [rpm-software-management/rpm] Shell-like escaping support in %files (PR #1903)
Michal Domonkos
notifications at github.com
Fri Feb 4 17:54:31 UTC 2022
> ```
> $ ls "foo\[bar\]"
> ls: cannot access 'foo\[bar\]': No such file or directory
> ```
More precisely, it's up to the program that receives the (expanded) argument, in this case `ls` gets the literal `foo\[bar\]`. Then it's up to the program to decide what to do next with it. However, I suppose, in most cases it doesn't make sense for a program to apply such escapes itself, at least not for a program that provides a shell CLI and operates on file system paths. I think our spec parser falls into the same category and therefore should behave the same.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1903#issuecomment-1030217853
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/1903/c1030217853 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220204/11012f23/attachment.html>
More information about the Rpm-maint
mailing list