On Thursday 24 April 2008 21:09, Cristian Ionescu-Idbohrn wrote:
> `...` and $(...) are posix and equivalent.  I find $(...) easier to use
> and cleaner, as nesting is much easier when using $(...).  Mixing the two
> in one and the same script easily leads to controversy.  Picking on
> testsuite/runtest this time ;-)  See for example this line in the named
> script:
> 
>   [ -n "$bindir" ] || bindir=$(dirname $(pwd))
> 
> Can someone provide a backtick equivalent example?

It's ugly:

`dirname \`pwd\``

--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to