unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Reza Housseini <reza.housseini@gmail.com>
To: help-guix@gnu.org
Subject: Re: Sourcing a script in phases
Date: Mon, 26 Dec 2022 13:52:58 +0100	[thread overview]
Message-ID: <ae3cd7c4-6397-0690-bb19-211fe6f7ca6e@gmail.com> (raw)
In-Reply-To: <V1D7gLvYrPmz1r0ZQVqylr7eNd9E_kc4E6Cfx-9G2dBbGgrVa3A2yEKsG63z7E-asJKriFdmcWJzqJYI6j_DeuEne082dKHVNc5OVMHgDd4=@protonmail.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 337 bytes --]

> (invoke "source" "env.sh")
> or
> (invoke "." "env.sh")

I had the same problem and ended up doing

(invoke "bash" "-c" "source env && ./command")

not the most elegant, but it did work.

Cheers,

-- 
Reza Housseini

This message is signed with my GnuPG key:

     C0F3 0812 9AF2 80F4 0830 C2C1 C375 C6AF 0512 5C52


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 15557 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2022-12-26 12:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-25 22:43 Sourcing a script in phases phodina via
2022-12-26 12:52 ` Reza Housseini [this message]
2022-12-26 21:37 ` Edouard Klein
2022-12-27 23:25   ` phodina

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=ae3cd7c4-6397-0690-bb19-211fe6f7ca6e@gmail.com \
    --to=reza.housseini@gmail.com \
    --cc=help-guix@gnu.org \
    /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.
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).