“set -o noglob” in bash shell script
问题 I would usually write SQL statements inline in a Bash shell script to be executed in SQLPlus as- #! /bin/sh sqlplus user/pwd@dbname<<EOF insert into dummy1 select * from dummy2; commit; exit; EOF This would work just fine and will insert rows into dummy1 when executed. A colleague of mine came to me the other day with a script like below (simplified) #! /bin/sh sqlvar="insert into dummy1 select * from dummy2;commit;" echo $sqlvar|sqlplus user/pwd@dbname The issue with this is when executed