[Mailman-Users] error while running make install

Stephen J. Turnbull stephen at xemacs.org
Thu Mar 8 21:27:20 CET 2012

Mark Sapiro writes:
 > Stephen J. Turnbull wrote:
 > >Con Wieland writes:
 > >
 > > > for p in   ; \
 > >
 > >This is the problem.  There is a variable that should contain a list,
 > >and it's empty.  I think you can probably get past this by wrapping
 > >the variable in "" (not ''), but I don't know if that is TRT.
 > It won't get very far past it. The commands in the for loop will fail
 > because of the blank value of $p.

At least some minimal POSIX shells (dash, I think) treat a missing
argument as a syntax error, but a zero-length string as a null list
(and so DTRT of executing zero times).  It sorta makes sense...

It's amazing how often simply wrapping all variable references in ""
solves shell script errors.

More information about the Mailman-Users mailing list