What is the meaning of @! in the following code from a make file? I check the make manual but find no answer:
check:
@echo "checking for tabs in shell scripts"
@! git grep -F ' ' -- '*.sh'
What is the meaning of @! in the following code from a make file? I check the make manual but find no answer:
check:
@echo "checking for tabs in shell scripts"
@! git grep -F ' ' -- '*.sh'
! inverts the return value of the command. @ suppresses the echoing of the command itself. Make gives you an error if any of the commands returns a non-zero value. Using ! just inverts the situation. The reason ! is not listed in the manual is that it's bash.