Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

artizirk

Member
  • Content Count

    2
  • Joined

  • Last visited

Awards


This user doesn't have any awards

About artizirk

  • Title
    Newbie
  • Birthday 1995-08-17

Profile Information

  • Gender
    Male
  • Location
    Estonia
  1. Linux seems to be pretty happy to run the script with broken shebang line but please # !bin/bash ^ don't add a space here correct bash shebang should look like this #!/bin/bash ^ No space and it is a full path starting with a /
  2. Maybe this is because your script is executable and Windows Linux Subsystem tries to execute the first line differently from the rest of the lines. I don't have a system handy to test this but try adding a shebang line as first line of your script. something like this #!/bin/bash mkdir test1 mkdir test2 mkdir test3 And save the file as a UNIX file because as you already figured out Linux/Unix systems use \n as a line sperator instead of \n\r like Windows does.
×