Skip to content

Use of echo with backslash sequences is non-portable #36

@welshjf

Description

@welshjf

On a system where /bin/sh is bash rather than dash/ksh:

$ ./gitguild
[...]
\tgitguild\tA helpful blockchain in a script.
[...]

See: http://unix.stackexchange.com/questions/65803/why-is-printf-better-than-echo/65819#65819

Not sure the best alternative offhand: printf would be portable but passing a variable as a format string is not great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions