Skip to content

Handle whitespace in paths #385

Open

Description

@mtorpey

I don't know if this is an AutoDoc issue or a GAPDoc issue, but I'm doing the following:

$ cd ~
$ mkdir "my pkg"
$ cd "my pkg"
$ git clone git@github.com:mtorpey/uuid.git
$ cd uuid/
$ gap makedoc.g 

and I get the following failure:

     ● G  GAP 4.17dev-220-gb51db6f built on 2026-10-15 16:36:42+0100
  ● ●  A  https://www.gap-system.org
     ● P  Architecture: x86_64-pc-linux-gnu-default64-kv11
 Configuration:  gmp 6.3.0, GASMAN, readline
 Loading the library and packages ...
#I  digraphs package is not available. Check that the name is correct
#I  and it is present in one of the GAP root directories (see '??RootPaths')
#I  profiling package is not available. Check that the name is correct
#I  and it is present in one of the GAP root directories (see '??RootPaths')
 Packages:   AutoDoc 2026.09.09, curlInterface 2.5.0, GAPDoc 1.6.11, 
             IO 4.11.0, PackageManager 2.0.0-beta.4, PerfGrp 1.0.0, 
             PrimGrp 4.0.3, SmallGrp 1.7.0, TransGrp 3.6.5
 Try '??help' for help. See also '?copyright', '?cite' and '?authors'
#I Composing XML document . . .
#I Parsing XML document . . .
#I Checking XML structure . . .
#I Text version (also produces labels for hyperlinks):
#I First run, collecting cross references, index, toc, bib and so on . . .
#I Table of contents complete.
#I Producing the index . . .
#I Second run through document . . .
#I Producing simplified search strings and labels for hyperlinks . . .
#I Constructing LaTeX version and calling pdflatex:
#I Writing LaTeX file, 4 x pdflatex with bibtex and makeindex, sh: 1: cd: can't cd to /home/mtorpey/my

#W WARNING: Something wrong, cannot find log file /home/mtorpey/my pkg/uuid/do\
c/_main.log

#I ERROR: no .pdf file produced (writing incomplete .six file)
#I Finally the HTML version . . .
#I First run, collecting cross references, index, toc, bib and so on . . .
#I Table of contents complete.
#I Producing the index . . .
#I Second run through document . . .
#I - also HTML version for MathJax . . .
#I First run, collecting cross references, index, toc, bib and so on . . .
#I Table of contents complete.
#I Producing the index . . .
#I Second run through document . . .
#I  File: /home/mtorpey/my pkg/uuid/doc/manual.lab written.

The critical part above is sh: 1: cd: can't cd to /home/mtorpey/my which doesn't recognise my pkg as all one string.

I don't know where this sh call is happening or whether it's an easy fix, but I figure it's something to handle if we can, while gap-packages/PackageManager#158 is fixing something similar for PackageManager.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions