cowsay icon indicating copy to clipboard operation
cowsay copied to clipboard

mech-and-cow file crashes cowsay

Open mikeantonacci opened this issue 9 years ago • 1 comments

It looks like something's wrong with the mech-and-cow file.
I ran this command:

cowsay -f 'mech-and-cow' hello

The result was this error:

Backticks found where operator expected at /usr/local/share/cows/mech-and-cow line 12, near >"^__^ / /'| " (Might be a runaway multi-line``string starting on line 10) (Missing semicolon on previous line?) Backslash found where operator expected at /usr/local/share/cows/mech-and-cow line 13, near ")\" (Missing operator before \?) Backticks found where operator expected at /usr/local/share/cows/mech-and-cow line 15, at end of line (Missing semicolon on previous line?) cowsay: Can't find string terminator "" anywhere before EOF at /usr/local/share/cows/mech-and-cow line 15.

mikeantonacci avatar Mar 22 '15 19:03 mikeantonacci

That's because mech-and-cow was just an ascii picture, rather than a proper .cow file. It needed some slashes escaped and a variable declaration added. I fixed it in my fork and submitted a pull request. You could also just download mech-and-cow.cow from my repo and put it in the proper place yourself (and remove the original mech-and-cow)

SnoringFrog avatar Mar 24 '15 16:03 SnoringFrog