[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'
-DCONF_VENDOR='sun' -DSHELL -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE
-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
SUNW,Ultra-5_10
Machine Type: sparc-sun-solaris2.7
Bash Version: 2.05
Patch Level: 0
Release Status: release
Description:
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.)
Repeat-By:
echo $"foo"
- Expansion of $"foo" is "foo", not "$foo",
kjetilho <=