/src/usr.bin/make/unit-tests/ |
job-output-null.exp | 5 3a without newline, 3b without newline.
|
varname-dot-newline.mk | 1 # $NetBSD: varname-dot-newline.mk,v 1.7 2024/06/15 22:06:31 rillig Exp $ 3 # Tests for the special .newline variable, which contains a single newline 8 # > After all macro expansion is complete, when an escaped <newline> is 10 # > shall contain the <backslash>, the <newline>, and the next line, except 14 # The above quote assumes that each resulting <newline> character has a "next 15 # line", but that's not how the .newline variable works. 16 BACKSLASH_NEWLINE:= \${.newline} 19 # Check that .newline is read-only 21 NEWLINE:= ${.newline [all...] |
varname-dot-newline.exp | 1 make: varname-dot-newline.mk:28: Cannot overwrite ".newline" as it is read-only 3 make: varname-dot-newline.mk:30: Cannot append to ".newline" as it is read-only 5 make: varname-dot-newline.mk:32: Cannot delete ".newline" as it is read-only 11 backslash newline: <\
|
unexport.mk | 12 # was not reachable though. At that point, backslash-newline has already 19 .unexport ${.newline} UT_AFTER_NL
|
varmod-exclam-shell.mk | 19 # The newline at the end of the output is stripped. 24 # Only the final newline of the output is stripped. All other newlines are 30 # Each newline in the output is converted to a space, except for the newline
|
escape.mk | 9 # unescaped <newline> is reached. 11 # When an escaped <newline> (one preceded by a <backslash>) is found 17 # When an escaped <newline> is found in a command line in a 19 # <newline>, and the next line, except that the first character of 22 # When an escaped <newline> is found in an include line or in a 27 # <backslash><anything other than newline> is not mentioned. I think 29 # except before <newline>. 36 # newline in a variable assignment simply stores the backslashes as part 37 # of the value, and treats the newline as though it was not escaped. 38 # Similarly, an even number of backslashes before a newline in [all...] |
varmod-quote-dollar.mk | 7 # The newline and space characters at the beginning of this string are passed 10 ASCII_CHARS= ${.newline} !"\#$$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~
|
opt-debug-errors.mk | 10 all: fail-newline 24 # XXX: A newline is turned into an ordinary space in the debug log. 25 fail-newline: 26 echo 'line1${.newline}line2'; false
|
opt-jobs.mk | 22 . warning ${arg}:${.newline} have: ${OUTPUT:[2..-1]}${.newline} want: ${EXPECT.${arg}} 49 . warning ${arg}:${.newline} have: ${OUTPUT:[2..-1]}${.newline} want: ${EXPECT.${arg}}
|
job-output-null.mk | 48 # space. Because there is no trailing newline in the output, these 54 @printf '3a\0without\0\0\0newline, 3b\0without\0\0\0newline.' 55 # expect: 3a without newline, 3b without newline.
|
job-output-long-lines.mk | 12 # not terminated by a newline. Because of this missing newline, the job
|
opt-debug-errors-jobs.mk | 10 all: fail-newline 21 fail-newline: 22 echo 'line1${.newline}line2'; false
|
opt-debug-errors-jobs.exp | 26 *** Failed target: fail-newline 29 echo 'line1${.newline}line2'; false 32 *** [fail-newline] Error code 1
|
deptgt-makeflags.mk | 58 # The following line looks as if it assigned a newline to nl, but it doesn't. 67 # Next try at defining another newline variable. Since whitespace around the 69 # literal newline now. This prevents the newline from being skipped during 71 # expressions, leaving only the newline as the variable value. 79 .if ${nl} != ${.newline}
|
directive-for-escape.mk | 210 # What happens if the values from the .for loop contain a literal newline? 211 # Before for.c 1.144 from 2021-06-25, the newline was passed verbatim to the 212 # body of the .for loop, where it was then interpreted as a literal newline, 218 # newline character gets replaced with a plain space. 219 # expect+3: newline in .for value 220 # expect+2: newline in .for value 222 .for i in "${.newline}" 225 # No error since the newline character is not actually used in the body. 226 .for i in "${.newline}" 230 # a newline character in a .for loop led to a crash since at the point wher [all...] |
modmisc.mk | 57 @echo $@: new${.newline:Q}${.newline:Q}line
|
sh-jobs.mk | 26 @# comment${.newline}echo '$@: This is printed.'; false
|
/src/usr.bin/from/ |
from.c | 62 int ch, newline; local in function:main 118 for (newline = 1; fgets(buf, sizeof(buf), stdin);) { 120 newline = 1; 123 if (newline && !strncmp(buf, "From ", 5) && 126 newline = 0;
|
/src/lib/libc/time/ |
tzselect.ksh | 32 # if VALUE contains \, ", or newline, awk scripts in this file use: 44 # Output one argument as-is to standard output, with trailing newline. 194 newline=' 196 IFS=$newline 439 IFS=$newline;; 648 *"$newline"*) 691 *"$newline"*) 766 say >&2 " $time$newline $country_result$newline $region";; 767 ?*%?*%%|?*%%?*%) say >&2 " $time$newline $country_result$region"; [all...] |
/src/usr.bin/tftp/ |
tftpsubs.c | 77 static int newline = 0; /* fillbuf: in middle of newline expansion */ variable in typeref:typename:int 98 newline = 0; /* init crlf flag */ 160 if (newline) { 164 newline = 0; 172 newline = 1;
|
/src/usr.bin/error/ |
subr.c | 237 static char newline[] = NEWLINE; variable in typeref:typename:char[] 252 { /*INAS 3*/ "as", ASINCOMMENT, newline }, 258 { /*INFRANZ 9*/ "franz", lispincomment, newline }, 259 { /*INLISP 10*/ "lisp", lispincomment, newline }, 260 { /*INVAXIMA 11*/ "vaxima", lispincomment, newline }, 264 { /*INAPL 15*/ "apl", ".lm", newline }, 265 { /*INMAKE 16*/ "make", ASINCOMMENT, newline },
|
/src/bin/sh/ |
mktokens | 48 TNL 0 newline
|
/src/tests/usr.bin/indent/ |
lsym_lparen_or_lbracket.c | 245 /* ps.prev_lsym can never be 'newline'. */ 246 int newline = local in function:cover_want_blank_before_lparen 291 /* ps.prev_lsym can never be 'newline'. */ local in function:cover_want_blank_before_lparen 292 int newline =
|
/src/usr.bin/indent/ |
indent.c | 311 ps.newline = nl_no; 312 if (ps.newline == nl_unless_lbrace && lsym != lsym_lbrace) 313 ps.newline = nl_yes; 314 if (ps.newline == nl_unless_semicolon && lsym != lsym_semicolon) 315 ps.newline = nl_yes; 316 if (ps.newline == nl_unless_if && lsym != lsym_if) 317 ps.newline = nl_yes; 318 if (ps.newline != nl_yes) 576 ps.newline = nl_unless_lbrace; 581 ps.newline = nl_unless_if [all...] |
/src/usr.bin/fpr/ |
fpr.c | 279 COLUMN *newline; local in function:savech 291 newline = realloc(line, (unsigned) (col + 10) * sizeof(COLUMN)); 292 if (newline == NULL) 294 line = newline;
|