13
resdac
7y

F*cking windows and thair stupid alternative line endings. Spend way to much time on trying to make my bash file work. Aparently i copied some command from a website that used windows endings. Wich f*cked everything up

Comments
  • 2
    Most feature-full text editors can easily convert between line endings with a button click.
  • 1
    Maybe bash does this wrong and windows is doing it right....
  • 1
    Windows: \r\n
    MacOS: \r
    Linux: \n
  • 0
    dos2unix is your friend.^M
  • 1
    @MrCSharp There's no right or wrong for this,but when you can do it with one character, why use two. Its pointless
  • 0
    I don't understand this. Why do different OSes use different line endings?
Add Comment