linux shell

通过一个 shell 脚本获取了一个 token 变量。然后echo “header: $token http://xxx.corp.com” ,发现被 token 截断了。

终于发现 token 变量最后有一个\n\r导致。