Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The disks are getting full; purge a file today.


devel / comp.unix.shell / `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--repos-dir "emacs-libvterm") "build"))

SubjectAuthor
* `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concathongy...@gmail.com
`* Re: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concatJanis Papanagnou
 +* Re: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--reposSpiros Bousbouras
 |`- Re: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concathongy...@gmail.com
 `- Re: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concathongy...@gmail.com

1
`("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--repos-dir "emacs-libvterm") "build"))

<c2d037cc-08bd-4fae-9166-6d90797dab36n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4656&group=comp.unix.shell#4656

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ac8:59c9:: with SMTP id f9mr18659868qtf.581.1638513775591;
Thu, 02 Dec 2021 22:42:55 -0800 (PST)
X-Received: by 2002:ac8:45d2:: with SMTP id e18mr18810220qto.112.1638513775455;
Thu, 02 Dec 2021 22:42:55 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Thu, 2 Dec 2021 22:42:55 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=143.198.81.109; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 143.198.81.109
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c2d037cc-08bd-4fae-9166-6d90797dab36n@googlegroups.com>
Subject: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat
(straight--repos-dir "emacs-libvterm") "build"))
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Fri, 03 Dec 2021 06:42:55 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 59
 by: hongy...@gmail.com - Fri, 3 Dec 2021 06:42 UTC

This is a bash and Emacs related problem. So I post it here for some help. Sorry to bother again if you think it's not so relevant to shell.

I try to install vterm through straight's use-package integration with
the following configuration:

1.
(use-package vterm
:straight (
:pre-build (
("rm" "-fr" "build")
("mkdir" "build")
("bash" "-c" "cd build && cmake .. && make")
)))

2.
(use-package vterm
:straight (
:pre-build (
(shell-command "rm -fr build && mkdir build && cd $_
&& cmake .. && make")
)))

3.
(use-package vterm
:straight (
:pre-build (
("rm" "-fr" "build")
("mkdir" "build")
`("bash" "-c" "cd \"$1\" && cmake .. && make" "--"
,(concat (straight--repos-dir "emacs-libvterm") "build"))
)))

In the above methods, 1. and 2. can, but 3. can't build the vterm
module when I'm running `M-x straight-rebuild-package RET vterm RET'.

As you can see from my above description, the following one works:

("bash" "-c" "cd build && cmake .. && make")

But the following one doesn't work:

`("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat
(straight--repos-dir "emacs-libvterm") "build"))

The above method is based on the suggestion given by Radon Rosborough here [1]:

***
I'd recommend (untested):

`("bash" "-c" "cd \"$1\" && whatever-command" "--" ,some-other-directory)
***

[1] https://github.com/raxod502/straight.el/issues/800#issuecomment-933009729

Any hints for this problem?

Regards,
HZ

Re: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--repos-dir "emacs-libvterm") "build"))

<socej3$hk2$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4657&group=comp.unix.shell#4657

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell
Subject: Re: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat
(straight--repos-dir "emacs-libvterm") "build"))
Date: Fri, 3 Dec 2021 07:48:03 +0100
Organization: A noiseless patient Spider
Lines: 3
Message-ID: <socej3$hk2$1@dont-email.me>
References: <c2d037cc-08bd-4fae-9166-6d90797dab36n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 3 Dec 2021 06:48:03 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="0e78f51a27b399f1bb6e70c2ca00e261";
logging-data="18050"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+mfu+JXklhdmoud7D2xbL"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:vi7yKZSf11Zlxi5DOKsbWALGVmg=
In-Reply-To: <c2d037cc-08bd-4fae-9166-6d90797dab36n@googlegroups.com>
 by: Janis Papanagnou - Fri, 3 Dec 2021 06:48 UTC

Have you forgotten (or ever learned) how to formulate a sensible
subject line?

Re: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--repos-dir "emacs-libvterm") "build"))

<OZ00UZZDPuZ0lUsZY@bongo-ra.co>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4658&group=comp.unix.shell#4658

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: spi...@gmail.com (Spiros Bousbouras)
Newsgroups: comp.unix.shell
Subject: Re: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--repos-dir "emacs-libvterm") "build"))
Date: Fri, 3 Dec 2021 09:49:08 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <OZ00UZZDPuZ0lUsZY@bongo-ra.co>
References: <c2d037cc-08bd-4fae-9166-6d90797dab36n@googlegroups.com> <socej3$hk2$1@dont-email.me> <89b1426a-efff-4855-92f1-cc581c4dc30dn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 3 Dec 2021 09:49:08 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b4113856a9d2bb0c1dc4561bdeddf0d7";
logging-data="13990"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1981FBgukOq15979OLE7HdB"
Cancel-Lock: sha1:g8x3Wv7lziLKBmNq+beJszB2vcQ=
In-Reply-To: <89b1426a-efff-4855-92f1-cc581c4dc30dn@googlegroups.com>
X-Organisation: Weyland-Yutani
X-Server-Commands: nowebcancel
 by: Spiros Bousbouras - Fri, 3 Dec 2021 09:49 UTC

On Fri, 3 Dec 2021 01:13:05 -0800 (PST)
"hongy...@gmail.com" <hongyi.zhao@gmail.com> wrote:
> On Friday, December 3, 2021 at 2:48:08 PM UTC+8, Janis Papanagnou wrote:
> > Have you forgotten (or ever learned) how to formulate a sensible
> > subject line?
>
> I failed to come up with a reasonable subject for this question.

How about "bash/emacs related problem" ? Crossposting to gnu.emacs.help
would have probably also been a good idea.

Re: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--repos-dir "emacs-libvterm") "build"))

<bfee7234-2d81-4e0e-bc69-e105f4087371n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4659&group=comp.unix.shell#4659

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ac8:5916:: with SMTP id 22mr19971483qty.232.1638530570141;
Fri, 03 Dec 2021 03:22:50 -0800 (PST)
X-Received: by 2002:a05:6214:27c7:: with SMTP id ge7mr18759074qvb.44.1638530569928;
Fri, 03 Dec 2021 03:22:49 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Fri, 3 Dec 2021 03:22:49 -0800 (PST)
In-Reply-To: <OZ00UZZDPuZ0lUsZY@bongo-ra.co>
Injection-Info: google-groups.googlegroups.com; posting-host=139.162.102.94; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 139.162.102.94
References: <c2d037cc-08bd-4fae-9166-6d90797dab36n@googlegroups.com>
<socej3$hk2$1@dont-email.me> <89b1426a-efff-4855-92f1-cc581c4dc30dn@googlegroups.com>
<OZ00UZZDPuZ0lUsZY@bongo-ra.co>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bfee7234-2d81-4e0e-bc69-e105f4087371n@googlegroups.com>
Subject: Re: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat
(straight--repos-dir "emacs-libvterm") "build"))
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Fri, 03 Dec 2021 11:22:50 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 11
 by: hongy...@gmail.com - Fri, 3 Dec 2021 11:22 UTC

On Friday, December 3, 2021 at 5:49:14 PM UTC+8, Spiros Bousbouras wrote:
> On Fri, 3 Dec 2021 01:13:05 -0800 (PST)
> "hongy...@gmail.com" <hongy...@gmail.com> wrote:
> > On Friday, December 3, 2021 at 2:48:08 PM UTC+8, Janis Papanagnou wrote:
> > > Have you forgotten (or ever learned) how to formulate a sensible
> > > subject line?
> >
> > I failed to come up with a reasonable subject for this question.
> How about "bash/emacs related problem" ? Crossposting to gnu.emacs.help
> would have probably also been a good idea.

I've separately posted a mail on the Emacs user list.

Re: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--repos-dir "emacs-libvterm") "build"))

<495ffaa1-0fcb-43af-ad99-a9891dc794a4n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4660&group=comp.unix.shell#4660

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ac8:5a84:: with SMTP id c4mr19670100qtc.565.1638533456535;
Fri, 03 Dec 2021 04:10:56 -0800 (PST)
X-Received: by 2002:a05:6214:c48:: with SMTP id r8mr18864440qvj.98.1638533456290;
Fri, 03 Dec 2021 04:10:56 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Fri, 3 Dec 2021 04:10:56 -0800 (PST)
In-Reply-To: <socej3$hk2$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=203.175.13.39; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 203.175.13.39
References: <c2d037cc-08bd-4fae-9166-6d90797dab36n@googlegroups.com> <socej3$hk2$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <495ffaa1-0fcb-43af-ad99-a9891dc794a4n@googlegroups.com>
Subject: Re: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat
(straight--repos-dir "emacs-libvterm") "build"))
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Fri, 03 Dec 2021 12:10:56 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: hongy...@gmail.com - Fri, 3 Dec 2021 12:10 UTC

On Friday, December 3, 2021 at 2:48:08 PM UTC+8, Janis Papanagnou wrote:
> Have you forgotten (or ever learned) how to formulate a sensible
> subject line?

Basically, this is a problem on running bash command from Emacs by passing a parameter. More specifically, I noticed the following form works:

("bash" "-c" "cd build && cmake .. && make")

Now, I want to set the directory of `cd` command by passing a parameter, so I tried the following elisp code:

`("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--repos-dir "emacs-libvterm") "build"))

In the above code, the leading "`" indicates that this is backquote constructs allow me to quote a list, but selectively evaluate elements of that list [1]. In this case, the last element of the list will be evaluated and passed to bash as the first parameter, due to that it has the ",()" construct.

In detail, ,(concat (straight--repos-dir "emacs-libvterm") "build") will be expanded to the following:

"/home/werner/.emacs.d/straight/repos/emacs-libvterm/build"

and then be passed to the bash process as the first parameter. As a result, the above elisp command is equivalent to the following:

("bash" "-c" "cd \"$1\" && cmake .. && make" "--" "/home/werner/.emacs.d/straight/repos/emacs-libvterm/build")
But according to my tries, using the above code line directly works, but the backquote construct doesn't work. This puzzles me most.

[1] https://www.gnu.org/software/emacs/manual/html_node/elisp/Backquote.html

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor