Gentoo Archives: gentoo-user

From: Ian Zimmerman <itz@××××××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Why bash script, that works in "Debian", does not work on "Gentoo" install CD?
Date: Sat, 29 Jul 2017 19:39:18
Message-Id: 20170729193904.iayye7qjlvzr2vbr@matica.foolinux.mooo.com
In Reply to: [gentoo-user] Re: Why bash script, that works in "Debian", does not work on "Gentoo" install CD? by Grant Edwards
1 On 2017-07-29 18:48, Grant Edwards wrote:
2
3 > > PROMPT='Enter device (like /dev/sd(a1,b1,...): '
4 > > read -p $PROMPT device
5 >
6 > Nit: that doesn't work quite right either. It should be
7 >
8 > PROMPT='Enter device (like /dev/sd(a1,b1,...): '
9 > read -p "$PROMPT" device
10 >
11 > or
12 >
13 > read -p 'Enter device (like /dev/sd(a1,b1,...): ' device
14
15 Correct. All my scripts run with IFS='' so for me it does work ;-)
16
17 --
18 Please don't Cc: me privately on mailing lists and Usenet,
19 if you also post the followup to the list or newsgroup.
20 Do obvious transformation on domain to reply privately _only_ on Usenet.

Replies

Subject Author
[gentoo-user] Re: Why bash script, that works in "Debian", does not work on "Gentoo" install CD? Grant Edwards <grant.b.edwards@×××××.com>