[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: Use '.' and not 'source' which is a Bashism.
From: |
Taylan Ulrich Bayırlı/Kammer |
Subject: |
[PATCH] tests: Use '.' and not 'source' which is a Bashism. |
Date: |
Wed, 06 May 2015 20:18:47 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
I assume the test is supposed to run with any standards compliant shell
and not specifically GNU Bash:
>From 45b02e923e835569c47e4e5b4dd6972ac402a74e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Taylan=20Ulrich=20Bay=C4=B1rl=C4=B1/Kammer?=
<address@hidden>
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
- [PATCH] tests: Use '.' and not 'source' which is a Bashism.,
Taylan Ulrich Bayırlı/Kammer <=