just another one of my rumblings

Denys Vlasenko vda.linux at googlemail.com
Fri Apr 25 08:21:32 UTC 2008


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



More information about the busybox mailing list