help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Am I doing it all wrong?


From: Csepp
Subject: Re: Am I doing it all wrong?
Date: Sun, 28 Aug 2022 13:50:25 +0200

"(" <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 via email to

[Prev in Thread] Current Thread [Next in Thread]