Re: FVWM: Erroneous .fvwm2rc parsing

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Wed, 29 Sep 1999 01:10:50 +0200

On Tue, Sep 28, 1999 at 01:22:09PM -0400, Paul D. Smith wrote:
> %% nirva_at_ishiboo.com (Danny Dulai) writes:
>
> dd> On 09/27/99, esteffl_at_pbi.net said:
> >> well, I would say that the sh behaviour is a bug:-))
> >>
> >> sometime it is hard to distinguish the bug from the
> >> feature... (maybe it is indeed a bug in fvwmrc parsing, it depends
> >> on what behaviour they wanted)
>
> dd> I often use:
>
> dd> #!/bin/sh
> dd> # \
> dd> exec tclsh $0 $*
>
> dd> ... rest of script
>
> dd> or replace tclsh with perl or whatever.. The sh executes the exec
> dd> line, tclsh and everything else skips it.
>
> Just an off-topic note: as far as I know this _only_ works with Tcl. It
> definitely doesn't work with Perl, which treats backslash-newlines in
> comments just like the shell does1 (that is, ignores the backslash and
> doesn't concatenate the newline).
>
> I don't know of any other interpreter except tclsh that does it this
> way. Personally, I feel the perl/sh way is more intuitive: a comment is
> a comment, and _everything_ in a comment should be completely
> ignored... including trailing backslashes.

The most intuitive way I can think of is that comment lines are completely
removed except that a trailing backslash prevents the line end.
Thus you could say

fooabr=1\
        2\
# 3\
        4

or in a makefile:

OBJECTS = \
# foo.o \
        bar.o \
        foobar.o

and the lines beginning with '#' would be silently removed from
the input.

Bye

Dominik ^_^

--
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Tue Sep 28 1999 - 19:45:44 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST