How do you do to get your UID on Makefile. I use id -u
in my prompt and thats return my UID withou problem but in my Makefile
perm-user:
@echo $(id -u)
That's return nothing. Someone have a idea ? Thanks for your help
Escape the $
so the shell interprets it rather than make.
@echo $$(id -u)
There's no need for the echo
, though. echo $(cmd)
is the same as cmd
.
@id -u
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With