08-22-2006, 01:31 PM
Quote:Modern versions of vi (read -- the vi with linux which is really vim in a reduced mode) are not the best test for this, as they understand how to deal with DOS text files and will hide the ^M's from you.Turns out you're right. Someone PM'ed me with the command:
Code:
head -1 <scriptname> | od -c | head -1
Which I ran, and found that there was a \r in the first line:
Code:
-bash-2.05b$ head -1 tschk.sh | od -c | head -1
0000000 # ! / b i n / s h \r \n
This never showed in vi. Bleh. I used an online Dos2Unix converter to strip the \r and it works now.
Thanks guys!
-Bolty
Quote:Considering the mods here are generally liberals who seem to have a soft spot for fascism and white supremacy (despite them saying otherwise), me being perma-banned at some point is probably not out of the question.