mesos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Downes (JIRA)" <>
Subject [jira] [Commented] (MESOS-1424) Mesos tests should not rely on echo
Date Tue, 27 May 2014 22:38:01 GMT


Ian Downes commented on MESOS-1424:

Specifically, man 1 echo (for /bin/echo) includes this statement:
Applications aiming for maximum portability are strongly encouraged to use printf(1) to suppress
the newline character.

> Mesos tests should not rely on echo
> -----------------------------------
>                 Key: MESOS-1424
>                 URL:
>             Project: Mesos
>          Issue Type: Improvement
>          Components: test
>            Reporter: Till Toenshoff
>            Priority: Minor
>              Labels: cleanup, easyfix, osx, tests
> Triggered by MESOS-1413 I would like to propose changing our tests to not rely on {{echo}}
but to use {{printf}} instead.
> This seems to be useful as {{echo}} is introducing an extra linefeed after the supplied
string whereas {{printf}} does not. The {{-n}} switch preventing that extra linefeed is unfortunately
not portable - it is not supported by the builtin {{echo}} of the BSD / OSX {{/bin/sh}}.

This message was sent by Atlassian JIRA

View raw message