groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] `groff' options for other programs


From: Ralph Corderoy
Subject: Re: [Groff] `groff' options for other programs
Date: Sun, 28 Apr 2013 10:10:18 +0100

Hi Werner,

> > > > OPTS_WITH_ARG=`echo $OPTS \
> > > >     | sed "s/[$OPTS_NO_ARG:]//g"`
...
> > Moreover I could not use `` in GNU make. But $(shell ...) cou;d be
> > used instead.
> 
> Backticks do work in Makefiles.  What's the problem?

Could it be that Bernd thinks your shell variable assignments, intended
for command lines of a target where the shell will handle the backticks,
are make variable assignments?

    $ cat makefile
    #! /usr/bin/make -f

    BAR = 3.14

    foo::
            xyzzy="$$USER $(BAR)" && \
            echo $(BAR) `expr 6 \* 7` $$TERM $$xyzzy
    $
    $ ./makefile
    xyzzy="$USER 3.14" && \
            echo 3.14 `expr 6 \* 7` $TERM $xyzzy
    3.14 42 xterm ralph 3.14
    $

Cheers, Ralph.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]