Cygwin command not found bad characters found in .bashrc 357\273\277

前端 未结 6 891
一生所求
一生所求 2021-01-05 16:42

I\'m new to Cygwin, I just installed it and attempted to set some simple environment variables. However, when I open the command shell, I get the error \"#357\\273\\277 com

6条回答
  •  时光说笑
    2021-01-05 17:17

    One way to strip these is in Linux is by using vi. If you say

    vi filename

    and then in vi use the ed command :se fileencoding=ASCII

    this will strip the oddball characters out.

    You can confirm this by saving the file and then running od -c on the file.

    Before: od -c changes.sql | head 0000000 357 273 277 I N S E R T I N T O `

    After: od -c changes.sql | head 0000000 I N S E R T I N T O ` c o n

提交回复
热议问题