On 11/06/18 17:07, lejeczek via users wrote:
I'm sorry, I do not get it.. was I so hard to read?

$ _def1="_me 1"
$ rpmbuild --define \'"${_def1}"\'

and no matter how I quote, how I escape bash's var, rpmbuild does not "react" to it. I run it from a bash script.
I should mention I'm on Centos 7.5. RPM version 4.11.3

many thanks, L.
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/[email protected]/message/5NFU3JXRKRGBHTVJFX4JMYCNO7UCEZ22/

It actually might be working. What I was doing I was looking for a confirmation like this:

$ ps -FC rpmbuild --cols 9999
UID        PID  PPID  C    SZ   RSS PSR STIME TTY          TIME CMD
appmgr 24855 24835 0 44512 6772 16 17:33 pts/0 00:00:00 rpmbuild --define "_MKL 1" --define "_mic 1"

waiting to see those quotation marks(single or double) in there, but.. it turns out that it works actually when ps is not showing them, like:

$ ps -FC rpmbuild --cols 9999
UID        PID  PPID  C    SZ   RSS PSR STIME TTY          TIME CMD
appmgr 24855 24835 0 44512 6772 16 17:33 pts/0 00:00:00 rpmbuild --define _MKL 1 --define _mic 1

and then vars(in a bash script, all in such a script) are simply declared:
...
export _definition1='_MKL 1'
rpmbuild --define "${_definition1}" --define "${_definition2}"

without! any escaping of quotes.
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]/message/MSJKBBTDFOTHCMOA36CRBP37QRBMHTWP/

Reply via email to