[wplug] very simple bash question..

Vance Kochenderfer vkochend at nyx.net
Tue Mar 22 17:18:39 EST 2005


Tim Lesher <tim at lesher.ws> wrote:
> On Thu, Mar 17, 2005 at 09:32:42AM -0500, Eric Cooper wrote:
> > or: var=$(ps aux | wc -l)
> 
> Is this a bashism, or does it work with sh proper?  (I don't have my

Don't know where it originated, but looking on a Solaris system, ksh,
zsh, and bash all support the $(command) syntax, while sh, csh, and
tcsh only support `command`.

Vance Kochenderfer        |  "Get me out of these ropes and into a
vkochend at nyx.net          |   good belt of Scotch"    -Nick Danger


More information about the wplug mailing list