%* macro adds leading space.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I am trying to create a macro that uses %* inside double quotes, so I have 
something like the following /etc/rpm/macros:

	%macroX(p:) \
	echo "'%{-p:-p=%{-p*}}' '%{*}'" \
	%{nil}

And then in my test spec file I have something like this:

	%macroX -p stuff hello there

When I build the rpm it expands to:

	echo "'-p=stuff' ' hello there'" 

And displays when ran:

	'-p=stuff' ' hello there'

Note in the leading space where %* was evaluated?  What is up with this, 
and can I get it not to do that?

Thanks...james

P.S. Obviously I am trying to use this for a serious purpose, and the 
above is only a test case.


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux