[MacPorts] #62040: cowsay @3.03_2: mech-and-cow file incorrect format

MacPorts noreply at macports.org
Tue Jan 12 05:21:30 UTC 2021


#62040: cowsay @3.03_2: mech-and-cow file incorrect format
--------------------------+--------------------
 Reporter:  SerpentChris  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.6.4
 Keywords:                |       Port:  cowsay
--------------------------+--------------------
 The directory `/opt/local/share/cowsay/cows/` is full of `.cow` files
 containing variables that define an ascii art cow. One file in this
 directory is called `mech-and-cow` without the `.cow` extension and has
 this in it:

 {{{
                                    ,-----.
                                    |     |
                                 ,--|     |-.
                          __,----|  |     | |
                        ,;::     |  `_____' |
                        `._______|    i^i   |
                                 `----| |---'| .
                            ,-------._| |== ||//
                            |       |_|P`.  /'/
                            `-------' 'Y Y/'/'
                                      .==\ /_\
    ^__^                             /   /'|  `i
    (oo)\_______                   /'   /  |   |
    (__)\       )\/\             /'    /   |   `i
        ||----w |           ___,;`----'.___L_,-'`\__
        ||     ||          i_____;----\.____i""\____\






 }}}

 You can't use this as a cowfile with cowsay because of a few problems.
 Each `\` character needs to be escaped, the art needs to go into a
 variable called `$the_cow`, and it might also be nice to use the `$eyes`
 and `$tongue` variables for the cows eyes and tongue, which can be set
 with command line arguments to cowsay. Something like this:

 {{{

 $the_cow = <<EOC;
                                    ,-----.
                                    |     |
                                 ,--|     |-.
                          __,----|  |     | |
                        ,;::     |  `_____' |
                        `._______|    i^i   |
                                 `----| |---'| .
                            ,-------._| |== ||//
                            |       |_|P`.  /'/
                            `-------' 'Y Y/'/'
                                      .==\\ /_\\
    ^__^                             /   /'|  `i
    ($eyes)\\_______                   /'   /  |   |
    (__)\\       )\\/\\             /'    /   |   `i
     $tongue   ||----w |           ___,;`----'.___L_,-'`\\__
        ||     ||          i_____;----\\.____i""\\____\\
 EOC

 }}}

 I also think the file should be renamed to `mech-and-cow.cow` but that
 isn't strictly necessary.

-- 
Ticket URL: <https://trac.macports.org/ticket/62040>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list