Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
ShellScript in Windows BAT
@rem '
@echo off
set P="/mnt/%~f0"
set P=%P:\=/%
set P=%P::=%
set P=%P:/mnt/C/=/mnt/c/%
set P=%P:/mnt/D/=/mnt/d/%
bash.exe %P% %*
goto :eof
' 2>/dev/null
# ---------- SHELL ---------- #
echo \$1 = $1
yes This is ShellScript | head -3

This comment has been minimized.

Copy link
Owner Author

@kunst1080 kunst1080 commented Apr 24, 2017

Change the line feed code to LF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.