-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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