さっき WSL から Windows 上の adb.exe を使ってたら文字列操作でわけがわからないことになってハマったのでメモ。
結局 sed
で \r
(CR) を消してあげれば動きました。
adb.exe shell ls $remote_dir | sed -e 's/\r//g'
adb 以外でも気をつけたほうがよさそうですね 🤔
Go to list of users who liked
More than 5 years have passed since last update.
さっき WSL から Windows 上の adb.exe を使ってたら文字列操作でわけがわからないことになってハマったのでメモ。
結局 sed
で \r
(CR) を消してあげれば動きました。
adb.exe shell ls $remote_dir | sed -e 's/\r//g'
adb 以外でも気をつけたほうがよさそうですね 🤔
Register as a new user and use Qiita more conveniently
Go to list of users who liked