Concatenating strings in bash overwrites them

前端 未结 4 1735
长情又很酷
长情又很酷 2020-12-09 22:33

I\'m parsing query results from a mysql command (with the --table parameter)

local records=`echo \"${query}\" | $MYSQL -u $MyUSER -h $MyHOST -p$MyPASS --tabl         


        
4条回答
  •  爱一瞬间的悲伤
    2020-12-09 23:12

    Check that you use Unix line endings. Using Windows line endings caused the same behavior for me, overwriting strings.

提交回复
热议问题