NetBSD Problem Report #53959

From  Fri Feb  8 07:18:11 2019
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 4A5157A16A
	for <>; Fri,  8 Feb 2019 07:18:11 +0000 (UTC)
Message-Id: <>
Date: Fri,  8 Feb 2019 07:18:10 +0000 (UTC)
Subject: pkgsrc doesn't handle PATHs with space in them
X-Send-Pr-Version: www-1.0

>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
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
pkgsrc seems to corrupt ${PATH} for paths that have space in them. This maket impossible to run executables from those folders.
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.


Avoid folders with space in them.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.