[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question mark expansion in echo statements busted?
From: |
Chet Ramey |
Subject: |
Re: Question mark expansion in echo statements busted? |
Date: |
Sat, 08 Nov 2003 17:54:07 -0500 |
User-agent: |
Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.4) Gecko/20030624 |
mod+bashbug@std.com wrote:
Machine Type: i386-pc-linux-gnu
Bash Version: 2.05b
Patch Level: 0
Release Status: release
Description:
Can't have env variables with question marks in them?
Repeat-By:
echo $BASH_VERSION
a='LEFT'
echo $a
z='RIGHT'
echo $z
x='fubar'
echo $x
echo $a$x$z
x='fub?ar'
echo $x
echo $a$x$z
echo $a$z
x='fubar'
echo $x
echo $a$x$z
There's no evidence here of any bug at all. Maybe you could repost
with the behavior you expect and what happens when you run the script.
When you run the script, make sure you do so in an empty directory.
`?' is a special character to the globbing code, and the results
of parameter expansion, unless quoted, are eligible for globbing.
Chet