Originally came up while discussing #217:
Especially now that rpm is expanding macro arguments, it needs a way to quote 
the arguments to handle whitespace, empty arguments etc.

This matches what shell does when undefined arguments are passed to functions:
```
rpm --define "%foo() 1:%1 2:%2" --eval "%foo %nil bar"
1:bar 2:%2
```

In some cases that's exactly what's wanted, in some cases it absolutely is not 
- what the shell has and we don't is a way to quote the arguments to preserve 
empty ones etc. We need that too, and I think this is a blocker for 4.14 
release.

Teaching argvSplitString() to handle quotes (optimally when a flag is enabled 
to preserve compatibility) would serve various other places too. And if there's 
a way to quote, there needs to be a way to escape those quotes to pass literal 
quotes.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/222
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to