>> For the academic sake only, does a facility exist to defer evaluation >> for this use case? > >It would get kinda ugly, but you could re-expand the macro body: > >%global foo-bar_dir %{expand:%(ls -d %{_builddir}/%{name}-%{version}/foo-bar-*-baz |grep -o '[^/]*$')} Thanks Michael, jlc