NetBSD Problem Report #53959

From www@NetBSD.org  Fri Feb  8 07:18:11 2019
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 4A5157A16A
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  8 Feb 2019 07:18:11 +0000 (UTC)
Message-Id: <20190208071810.9085C7A1D7@mollari.NetBSD.org>
Date: Fri,  8 Feb 2019 07:18:10 +0000 (UTC)
From: emilian.bold@gmail.com
Reply-To: emilian.bold@gmail.com
To: gnats-bugs@NetBSD.org
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
>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.

NetBSD Home
NetBSD PR Database Search

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