Skip to content

cowsay -n adds trailing newline when input is piped #28

@dylanpyle

Description

@dylanpyle

When reading piped input, cowsay -n prints a trailing newline. This behavior doesn't exist in the original perl version:

$ # perl
$ echo 'test' | /opt/local/bin/cowsay -n  
 ______
< test >
 ------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

$ # javascript
$ echo 'test' | ~/n/bin/cowsay -n
 ______
/ test \
\      /
 ------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions