pkgsrc-Bugs archive

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

pkg/53959: pkgsrc doesn't handle PATHs with space in them



>Number:         53959
>Category:       pkg
>Synopsis:       pkgsrc doesn't handle PATHs with space in them
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 08 07:20:00 +0000 2019
>Originator:     Emilian Bold
>Release:        All
>Organization:
>Environment:
Darwin 16.7.0 Darwin Kernel Version 16.7.0: Sun Oct 28 22:30:19 PDT 2018; root:xnu-3789.73.27~1/RELEASE_X86_64 x86_64
>Description:
pkgsrc seems to corrupt ${PATH} for paths that have space in them. This maket impossible to run executables from those folders.
>How-To-Repeat:
Add to your normal PATH (say in ~/.profile) some folder that has space in it:

PATH=$PATH:/Demo\ Folder/bin

Note how pkgsrc is unable to execute anything from that bin/ folder.

Echoing ${PATH} from the pkgsrc Makefile shows that the path space has been replaced by ':' so it was split in two paths.

/Demo:Folder/bin


>Fix:
Avoid folders with space in them.


Home | Main Index | Thread Index | Old Index