Skip to content

Instantly share code, notes, and snippets.

@aseering
Created December 13, 2016 14:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
#!/bin/bash
WIN_ARG=""
until [[ "$1" != *"="* ]]; do
WIN_ARG="$WIN_ARG SET $1 &&"
shift
done
WIN_ARG="$WIN_ARG $@"
echo "Running: $WIN_ARG"
exec cmd.exe /c "$WIN_ARG"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment