On 2017-07-29 19:13, Vadim A. Misbakh-Soloviov wrote: > > read 'Enter device (like /dev/sd(a1,b1,...): ' device > > AFAIK, this is not valid syntax for `read` in any shell (even on > Debian. I just checked)
Indeed. That should probably be something like PROMPT='Enter device (like /dev/sd(a1,b1,...): ' read -p $PROMPT device To the OP: How do you run the script? Are you sure it is bash that executes it? Are you aware of the fact that /bin/sh on Debian is dash by default? -- Please don't Cc: me privately on mailing lists and Usenet, if you also post the followup to the list or newsgroup. Do obvious transformation on domain to reply privately _only_ on Usenet.