Skip to content

ifplatform: filename escaping issue? #12

@Arinerron

Description

@Arinerron

Unfortunately I can't share reproduction steps, but thought I'd note there seems to be some kind of argument escaping issue:

Rc files read:
  NONE
Latexmk: Run number 1 of rule 'xelatex'
This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2022/dev/Debian) (preloaded format=xelatex)
 \write18 enabled.
entering extended mode
uname: extra operand 'REDACTED'
Try 'uname --help' for more information.
system returned with code 256
Latexmk: Log file says no output from latex
Latexmk: For rule 'xelatex', no output was made
Collected error summary (may duplicate other messages):
  xelatex: Command for 'xelatex' gave return code 1
      Refer to 'REDACTED.log' for details
Latexmk: Use the -f option to force complete processing,
runsystem(uname -s > ""REDACTED".w18")...executed.


/usr/share/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty:92: Package catchfile Error: File `"REDACTED".w18' not found.

See the catchfile package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.92     \CatchFileDef\@tempa{\ip@file}{}

The "REDACTED" filename has spaces in it which probably has something to do with it. I never experienced this issue till I added "-shell-escape" arg to latexmk in our build process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions