Skip to content

Instantly share code, notes, and snippets.

Created August 14, 2012 13:49
Show Gist options
  • Save anonymous/3349401 to your computer and use it in GitHub Desktop.
Save anonymous/3349401 to your computer and use it in GitHub Desktop.
Why text/x-c
echo "foo" > test.txt && file --mime-type test.txt #test.txt: text/plain
echo "doublee" > test.txt && file --mime-type test.txt #test.txt: text/plain
echo "doubl" > test.txt && file --mime-type test.txt #test.txt: text/plain
echo "double" > test.txt && file --mime-type test.txt #test.txt: text/x-c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment