mesos-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/MESOS-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14010433#comment-14010433
] 

Ian Downes commented on MESOS-1424:
-----------------------------------

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

> Mesos tests should not rely on echo
> -----------------------------------
>
>                 Key: MESOS-1424
>                 URL: https://issues.apache.org/jira/browse/MESOS-1424
>             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
(v6.2#6252)

Mime
View raw message