Skip to content

Improper handling of shell paths with spaces #113

Open
@ghost

Description

This happens on Windows, but I suspect it would happen on any platform with a space in the path.

Error from Emacs 28.2:

Error (use-package): exec-path-from-shell/:init: Non-zero exit code from shell C:\Program Files\Git\usr\bin\bash.exe invoked with args ("-l" "-i" "-c" "c:/Program Files/Git/usr/bin/printf.exe '__RESULT\\000%s\\000%s\\000__RESULT' \"${PATH-d932e0941975cd140d6dd7a8f88c8420}\" \"${MANPATH-d932e0941975cd140d6dd7a8f88c8420}\"").  Output was:
"bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
bash: c:/Program: No such file or directory

Command prompt 'where' command:

C:\>where bash
C:\Windows\System32\bash.exe
C:\Program Files\Git\usr\bin\bash.exe

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