On 2017-07-29 18:48, Grant Edwards wrote: > > PROMPT='Enter device (like /dev/sd(a1,b1,...): ' > > read -p $PROMPT device > > Nit: that doesn't work quite right either. It should be > > PROMPT='Enter device (like /dev/sd(a1,b1,...): ' > read -p "$PROMPT" device > > or > > read -p 'Enter device (like /dev/sd(a1,b1,...): ' device
Correct. All my scripts run with IFS='' so for me it does work ;-) -- 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.