[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Expansion of $"foo" is "foo", not "$foo"

From: kjetilho
Subject: Expansion of $"foo" is "foo", not "$foo"
Date: Mon, 21 May 2001 21:39:46 +0200 (MET DST)

Configuration Information [Automatically generated, do not change]:
Machine: sparc
OS: solaris2.7
Compiler: cc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='sparc' 
-DCONF_OSTYPE='solaris2.7' -DCONF_MACHTYPE='sparc-sun-solaris2.7' 
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I.  -I. -I./include -I./lib 
-I/local/gnu/include -g
uname output: SunOS thrir.ifi.uio.no 5.7 Generic_106541-14 sun4u sparc 
Machine Type: sparc-sun-solaris2.7

Bash Version: 2.05
Patch Level: 0
Release Status: release

        I haven't read the standard, but Solaris /usr/xpg4/bin/sh
        will output "$foo", not "foo" as the result of the command
        echo $"foo".  That is what I would expect intuitively, too.
        (I noticed this due to a typo in Red Hat 7.1's script
        /etc/init.d/xfs, which had no visible effect.)

        echo $"foo"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]