【发布时间】:2013-11-24 16:46:45
【问题描述】:
代码
s='id;some text here with possible ; inside'
IFS=';' read -r id string <<< "$s"
echo "$id"
错误
restore.sh: 2: restore.sh: Syntax error: redirection unexpected
bash 版本GNU bash, version 4.2.37(1)-release (x86_64-pc-linux-gnu)
【问题讨论】:
-
在
GNU bash, version 4.2.45(1)-release (x86_64-pc-linux-gnu)上为我工作
标签: linux bash sh herestring