unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: "Taylan Ulrich \"Bayırlı/Kammer\"" <taylanbayirli@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] tests: Use '.' and not 'source' which is a Bashism.
Date: Wed, 06 May 2015 22:17:27 +0200	[thread overview]
Message-ID: <871titsboo.fsf@gnu.org> (raw)
In-Reply-To: <87lhh1jwpn.fsf@taylan.uni.cx> ("Taylan Ulrich \=\?utf-8\?Q\?\=5C\=22Bay\=C4\=B1rl\=C4\=B1\=2FKammer\=5C\=22\=22's\?\= message of "Wed, 06 May 2015 22:08:04 +0200")

taylanbayirli@gmail.com (Taylan Ulrich "Bayırlı/Kammer") skribis:

> John Darrington <john@darrington.wattle.id.au> writes:
>
>> Since we use bash, I don't think it matters if we have constructs
>> which don't work on the traditional bourne shell.
>
> This is about building Guix though, which should work on any POSIX
> system (approximately at least?) with the dependencies listed in the
> README.

Yes.

> By the way it seems that wasn't the only issue in the test.  Here is a
> better patch, this time tested on Debian with /bin/sh set to dash:
>
>
> From f165e9a91118936e72f7df836446541c093c8329 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Taylan=20Ulrich=20Bay=C4=B1rl=C4=B1/Kammer?=
>  <taylanbayirli@gmail.com>
> Date: Wed, 6 May 2015 20:13:31 +0200
> Subject: [PATCH] tests: Fix etc/profile test.
>
> * tests/profiles.scm ("etc/profile"): Unset GUIX_PROFILE before sourcing
>   etc/profile.  Use '.' instead of 'source' for sourcing, since the latter is
>   a Bashism.  Call 'echo $PATH' instead of using the output of 'set' to
>   determine whether PATH is set, because the output of 'set' differs between
>   shells.

Good catch!  Looks good to me.

Could you move the explanations (after “since” and “because”) as
comments in the source, and push afterwards?

Thank you!

Ludo’.

  reply	other threads:[~2015-05-06 20:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-06 18:18 [PATCH] tests: Use '.' and not 'source' which is a Bashism Taylan Ulrich Bayırlı/Kammer
2015-05-06 19:32 ` John Darrington
2015-05-06 20:08   ` Taylan Ulrich Bayırlı/Kammer
2015-05-06 20:17     ` Ludovic Courtès [this message]
2015-05-06 20:36       ` Taylan Ulrich Bayırlı/Kammer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871titsboo.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=taylanbayirli@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).