From mboxrd@z Thu Jan 1 00:00:00 1970 From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Subject: [PATCH] tests: Use '.' and not 'source' which is a Bashism. Date: Wed, 06 May 2015 20:18:47 +0200 Message-ID: <87pp6dk1rs.fsf@taylan.uni.cx> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yq3uQ-0002aV-Qw for guix-devel@gnu.org; Wed, 06 May 2015 14:19:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yq3uP-0005DJ-Te for guix-devel@gnu.org; Wed, 06 May 2015 14:19:02 -0400 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:36499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yq3uP-0005Cz-MJ for guix-devel@gnu.org; Wed, 06 May 2015 14:19:01 -0400 Received: by wizk4 with SMTP id k4so213003954wiz.1 for ; Wed, 06 May 2015 11:19:00 -0700 (PDT) Received: from taylan.uni.cx ([2a02:908:db25:ee00:213:e8ff:feed:36fb]) by mx.google.com with ESMTPSA id l6sm3902304wjz.4.2015.05.06.11.18.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 May 2015 11:18:59 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/plain I assume the test is supposed to run with any standards compliant shell and not specifically GNU Bash: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-tests-Use-.-and-not-source-which-is-a-Bashism.patch >From 45b02e923e835569c47e4e5b4dd6972ac402a74e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Taylan=20Ulrich=20Bay=C4=B1rl=C4=B1/Kammer?= Date: Wed, 6 May 2015 20:13:31 +0200 Subject: [PATCH] tests: Use '.' and not 'source' which is a Bashism. * tests/profiles.scm ("etc/profile"): Use '.' instead of 'source', since the latter is a Bashism and not necessarily supported by a standard shell. --- tests/profiles.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/profiles.scm b/tests/profiles.scm index a397171..93801a0 100644 --- a/tests/profiles.scm +++ b/tests/profiles.scm @@ -237,8 +237,7 @@ (mbegin %store-monad (built-derivations (list drv)) (let* ((pipe (open-input-pipe - (string-append "source " - profile "/etc/profile; " + (string-append ". " profile "/etc/profile; " "unset GUIX_PROFILE; set"))) (env (get-string-all pipe))) (return -- 2.2.1 --=-=-=--