unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Csepp <raingloom@riseup.net>
To: "(" <paren@disroot.org>
Cc: jgart <jgart@dismail.de>, Ricardo Wurmus <rekado@elephly.net>,
	help-guix@gnu.org
Subject: Re: Am I doing it all wrong?
Date: Sun, 28 Aug 2022 13:50:25 +0200	[thread overview]
Message-ID: <87y1v8r3ev.fsf@riseup.net> (raw)
In-Reply-To: <CMH42KIRLV3C.1T35588A9TGHA@guix-aspire>


"(" <paren@disroot.org> writes:

> On Sat Aug 27, 2022 at 9:56 PM BST, ( wrote:
>>   guix shell -D guix -- sh <<EOF
>>   ./bootstrap && ./configure --localstatedir=/var && make -j$(nproc)
>>   EOF
>
> You could wrap it in a sh function:
>
>   gsh() {
>       guix shell $@ -- sh
>   }
>
>   gsh -D guix <<EOF
>   ./bootstrap && ./configure --localstatedir=/var && make -j$(nproc)
>   EOF
>
>     -- (

Did you test that one?  Because I'm pretty sure it won't work, you
aren't passing the heredoc file descriptor to sh but guix shell.
Also, that should probably be "$@", just in case.

Because Bash is garbage. :)


  reply	other threads:[~2022-08-28 11:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-27 15:34 Am I doing it all wrong? jgart
2022-08-27 17:15 ` Ricardo Wurmus
2022-08-27 18:38   ` jgart
2022-08-27 20:53     ` (
2022-08-27 20:56     ` (
2022-08-27 20:58       ` (
2022-08-28 11:50         ` Csepp [this message]
2022-08-28 12:21           ` (
2022-08-28 14:10             ` Saku Laesvuori
2022-08-27 20:45 ` (
2022-08-28 11:52 ` Csepp

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=87y1v8r3ev.fsf@riseup.net \
    --to=raingloom@riseup.net \
    --cc=help-guix@gnu.org \
    --cc=jgart@dismail.de \
    --cc=paren@disroot.org \
    --cc=rekado@elephly.net \
    /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).