groff
[Top][All Lists]
Advanced

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

Re: [Groff] GNU troff in OpenBSD


From: Ralph Corderoy
Subject: Re: [Groff] GNU troff in OpenBSD
Date: Mon, 17 Oct 2011 11:49:12 +0100

Hi Werner,

> > > That smells odd;
> >
> > Yes, please do say that aloud.  :-/
>
> :-)

Sorry, I didn't mean offence by that Ingo, just that something doesn't
seem quite right.  Not sure if my meaning comes through across
languages.  :-)

> > > what if I've a file called ./mandate?  Do the globs need escaping?
>
> ... we are talking about running `make' after unpacking the tarball,
> right?  And the specific line constructs an `echo' command for the
> groff string \*[*date] (so no globs are involved at all) which holds
> the output of the `date' command.

To clarify, the glob is a shell glob of `*date ' that's passed to
echo(1).

    $ ls
    glob.tr
    $ cat glob.tr
    foo
    .pso sh -c "echo -n .ds *date\ ;date"
    bar
    `\*[*date]'
    `\*[mandate]'
    xyzzy
    $
    $ nroff -U glob.tr | grep .
    foo bar ‘2011‐10‐17 11:36:46 +0100 Mon’ ‘’ xyzzy
    $ >'mandate '
    $ nroff -U glob.tr | grep .
    foo bar ‘’ ‘2011‐10‐17 11:37:03 +0100 Mon’ xyzzy
    $

But I didn't know the context was only within the build-tree and not
wherever the user may be when formatting the document so it's just a
niggle really.

Cheers, Ralph.



reply via email to

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