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 17:38:07 | ||
Message-Id: | 20170729173749.owd5dtnuzm6nixne@matica.foolinux.mooo.com | ||
In Reply to: | Re: [gentoo-user] Why bash script, that works in "Debian", does not work on "Gentoo" install CD? by "Vadim A. Misbakh-Soloviov" |
1 | On 2017-07-29 19:13, Vadim A. Misbakh-Soloviov wrote: |
2 | |
3 | > > read 'Enter device (like /dev/sd(a1,b1,...): ' device |
4 | > |
5 | > AFAIK, this is not valid syntax for `read` in any shell (even on |
6 | > Debian. I just checked) |
7 | |
8 | Indeed. That should probably be something like |
9 | |
10 | PROMPT='Enter device (like /dev/sd(a1,b1,...): ' |
11 | read -p $PROMPT device |
12 | |
13 | To the OP: How do you run the script? Are you sure it is bash that |
14 | executes it? Are you aware of the fact that /bin/sh on Debian is dash |
15 | by default? |
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. |
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> |
Re: [gentoo-user] Re: Why bash script, that works in "Debian", does not work on "Gentoo" install CD? | "Ста Деюс" <sthu.deus@×××××××××××.org> |