#296 Cosmetic: BSD/GNU specific option for echo


On Solaris 10, flac 1.2.0, there's a cosmetic-only issue with the test scripts, they're using the "-n" option for echo, which is available on BSD and GNU echo, not on SysV ones.

Result looks like:

-n noise: encode via pipes...
-n decode via pipes...
-n compare...

It can be either replaced by /usr/ucb/echo on Solaris (the BSD-compatibility version), or maybe a more generic way would be to use printf, which is standard.

It's trivial in any case, so I can provide a patch for either solution.


  • Josh Coalson

    Josh Coalson - 2007-08-31

    Logged In: YES
    Originator: NO

    ok, if you have a patch that would be great... how far back in solaris does /usr/ucb/echo go?

  • Josh Coalson

    Josh Coalson - 2007-08-31
    • assigned_to: nobody --> jcoalson
    • status: open --> open-accepted
  • laurent

    laurent - 2007-09-01

    Patch to use printf instead of echo -n

  • laurent

    laurent - 2007-09-01

    Logged In: YES
    Originator: YES

    /usr/ucb has always been in Solaris, it's the compatibility tools from when they switched from BSD-based SunOS to System V-based Solaris around '90.

    Here is a basic patch, only replacing echo -n by a printf, via a variable. Is that ok?
    File Added: tests_scripts_echo.patch

  • Erik

    Erik - 2015-10-04

    Closing old out-of-date issue.

  • Erik

    Erik - 2015-10-04
    • status: open-accepted --> closed-out-of-date
    • Group: --> 1.3.0

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks