From: Bas Zoutendijk <slzoutendijk@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] bash scrip prompt after bootstrap
Date: Mon, 2 Apr 2018 11:29:07 +0200 [thread overview]
Message-ID: <20180402092907.GC7634@blackeye.localdomain> (raw)
In-Reply-To: <20180402082545.wilmp2fxppokcgug@grusum.endjinn.de>
On Mon 2 Apr 2018 at 10:25:45 +0200, David Haller wrote:
> You owe me a dollar!
>
> export PS1="$(chroot '$HOST') $PS1";
> ^
The text within the parentheses was meant as literal text, the chroot
command is executed rightward of the pipe. I could just as well write
echo 'export PS1="You have chrooted into '$HOST' from $PS1"; exec <dev/tty' | exec chroot $ROOT /bin/bash -i
No dollars necessary.
Sincerely,
Bas
--
Sebastiaan L. Zoutendijk | slzoutendijk@gmail.com
next prev parent reply other threads:[~2018-04-02 9:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-30 16:33 [gentoo-user] bash scrip prompt after bootstrap thelma
2018-03-30 17:10 ` Bas Zoutendijk
2018-03-30 18:20 ` thelma
2018-04-02 2:54 ` thelma
2018-04-02 8:00 ` Bas Zoutendijk
2018-04-02 8:25 ` David Haller
2018-04-02 9:29 ` Bas Zoutendijk [this message]
2018-04-02 15:14 ` [gentoo-user] " Ian Zimmerman
2018-04-02 15:55 ` Bas Zoutendijk
2018-04-02 16:25 ` Ian Zimmerman
2018-04-02 17:18 ` Bas Zoutendijk
2018-04-02 18:40 ` Ian Zimmerman
2018-04-02 16:50 ` [gentoo-user] " thelma
2018-04-02 18:36 ` Tom H
2018-04-02 20:40 ` Bas Zoutendijk
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180402092907.GC7634@blackeye.localdomain \
--to=slzoutendijk@gmail.com \
--cc=gentoo-user@lists.gentoo.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