Ben Reser wrote on Wed, Nov 27, 2013 at 22:32:53 -0800:
> On 11/27/13 9:04 PM, Nico Kadel-Garcia wrote:
> > * You mentioned that I should not use "$()" syntax. It was helpful to
> > get the "printf" for SQLITE_VERSION handling into a single line,
> > because printf parsing is a bit odd.. I'm startled if any system
> > modern enough to compose Subversion 1.8.5';s dependencies do not
> > support that syntax, but but it's easy to unroll that change.
> 
> Solaris's /bin/sh doesn't support $() unfortunately.  Yes $() is part of 
> POSIX.
>  We've had users complain about this not working.  Unfortunately that means 
> you
> have to split that onto 2 lines.  I wasn't thrilled about doing that but
> couldn't find a portable way to do it in one line.

Would this not work?

    % echo `echo \`echo foo\` | sed s/foo/bar/`   
    bar

Reply via email to