On Tue, Feb 28, 2006 at 03:24:20PM -0600, Randy McMurchy wrote:
>
> Does anybody know right offhand if $(command) syntax is a bash-only
> thing?
System: 5.4-STABLE FreeBSD
$ /usr/local/bin/bash --version
GNU bash, version 2.05b.0(1)-release (i386-portbld-freebsd4.7)
Copyright (C) 2002 Free Software Foundation, Inc.
$ echo `ls`
<snip correct output>
$ echo ${ls}
Same goes zsh 3.0,5, ksh (version unknown )and sh (true Bourne shell
unknown version).
/bin/tcsh --version
tcsh 6.13.00 (Astron) 2004-05-19 (i386-intel-FreeBSD) options
8b,nls,dl,al,kan,sm,rh,color,dspm,filec
$ echo `ls`
<snip correct output>
$ echo ${ls}
ls: Undefined variable.
But then again, this is not Linux. ;)
--
Archaic
Want control, education, and security from your operating system?
Hardened Linux From Scratch
http://www.linuxfromscratch.org/hlfs
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page