make(1): add test for suppressing the output of the command using @

This commit is contained in:
rillig 2020-08-22 09:16:08 +00:00
parent 3c38132480
commit 716309e66e
2 changed files with 9 additions and 4 deletions

View File

@ -1 +1,5 @@
ok
space after @
echo 'echoed'
echoed
exit status 0

View File

@ -1,9 +1,10 @@
# $NetBSD: sh-leading-at.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $
# $NetBSD: sh-leading-at.mk,v 1.3 2020/08/22 09:16:08 rillig Exp $
#
# Tests for shell commands preceded by an '@', to suppress printing
# the command to stdout.
# TODO: Implementation
all:
@:;
@
@echo 'ok'
@ echo 'space after @'
echo 'echoed'