我的Makefile中的Bash命令ID不起作用

时间:2018-05-28 12:21:44

标签: linux shell makefile

如何在Makefile上获取UID。我在提示符中使用id -u,那就是在我的Makefile中返回我的UID问题

perm-user:
    @echo $(id -u)

没有回报。有人有想法吗? 谢谢你的帮助

1 个答案:

答案 0 :(得分:2)

转义Get-ADUser -filter {userAccountControl -eq "512"} -properties Name,userAccountControl -Server myserver.local | Export-CSV "E:\Folder\ADusers.csv" -NoTypeInformation -Encoding UTF8 以便shell解释它而不是make。

$

不需要@echo $$(id -u) echoecho $(cmd)相同。

cmd