procmail
[Top] [All Lists]

assigning a variable in an INCLUDERC with no terminating newline

2001-07-07 15:22:38
Until Don posted his idea of appending to a file with LOG= so that the trail-
ing newline is deliberately omitted and that got filtered through my gray
matter into the notion of creating a file that way, surely nobody was into
assigning or unsetting variables in INCLUDERCs that didn't have trailing new-
lines.

(By the trailing newline I don't mean a blank line but rather the proper
 closure to the last [or only] line of text.)

But anyhow, here's what I found; INCLUDERC=file, when the file contents are
[or at least its last line is] each of the following, has the corresponding
effect.  "<eof>" means end-of-file (with no closing newline).

variable<eof>         procmail reports "Skipping variable" and does not
                      change anything; if $variable had a value before,
                      it stays the same

variable<space><eof>  unsets variable
variable<tab><eof>    unsets variable

variable=<eof>        leaves variable (set but) null

variable=value<eof>   assigns value to variable

The foregoing is posted only as a curiosity.  Only in the weirdest of cases
should people be writing rcfiles, even if they're only INCLUDERCs, that don't
have terminating newlines.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • assigning a variable in an INCLUDERC with no terminating newline, David W. Tamkin <=