Skip to content

Instantly share code, notes, and snippets.

@chankruze
Created May 28, 2019 18:22
Show Gist options
  • Save chankruze/56cf345e93745cfcb37036bbc18988a1 to your computer and use it in GitHub Desktop.
Save chankruze/56cf345e93745cfcb37036bbc18988a1 to your computer and use it in GitHub Desktop.
test: A custom shell binary to compile and run a C source file to quickly test code snippets
FILE_NAME=$(basename $1 .c)
gcc $1 -o $FILE_NAME && chmod a+x $FILE_NAME && ./$FILE_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment