Follow-up Comment #10, bug #68793 (group groff):

[comment #9 comment #9:]
> One more question: Is "." the best fallback if TMPDIR doesn't exist?  The
> user might have cd'ed to a directory where he doesn't have write access,
> whereas on any conventional system, /tmp will be writable by all users.  So
> /tmp seems a safer fallback than ".".

Here's how other _groff_ programs handle this matter.

_groff_(1):

     GROFF_TMPDIR
            Create temporary files in this directory.  If not set, but
            TMPDIR is, the latter is used instead.  On Windows systems,
            if neither of the foregoing is set, the environment
            variables TMP and TEMP (in that order) are checked also.
            Otherwise, temporary files are created in a system‐dependent
            default directory (on Unix and GNU/Linux systems, usually
            /tmp).  The refer(1), grohtml(1), and grops(1) commands use
            temporary files.


All those named commands behave the same way because _libgroff_ deals with
this tedium.

It seems to me like we should nudge _pdfmom_(1) in a congruent direction.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68793>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to