just another one of my rumblings

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Thu Apr 24 19:09:43 UTC 2008


Just ignore me if I'm out of line 8-)

It's more about style than anything else.

`...` 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?
That could even be simplified to:

  ["$bindir" ] || bindir=$(dirname $(pwd))

without loosing anything.  The attached patch is attemting to make
testsuite/runtest more style consistent.


Cheers,

-- 
Cristian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: runtest.patch
Type: text/x-diff
Size: 3188 bytes
Desc: 
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080424/46a4fe97/attachment.bin 


More information about the busybox mailing list