Closed apjanke closed 4 years ago
Done in https://github.com/cowsay-org/cowsay/commit/772f079b8a5685b96d5cb11a213be908d401f62a.
$ ./cowsay -l | cat
DragonAndCow
Example
Frogs
MechAndCow
Stegosaurus
TextBalloon
TuxStab
beavis.zen
blowfish
bong
bud-frogs
bunny
cheese
cower
daemon
default
dragon
dragon-and-cow
elephant
elephant-in-snake
eyes
[...]
I also fixed the problem of cowsay -l
ignoring *.pm
files.
The
cowsay -l
output has some human-readable header junk in it:That means you can't really just capture its output in a bash variable and loop over it or random-index into it.
Add a more parsing-friendly
-l
output format, triggered either when the output is attached to a non-terminal device, or with another option flag.