bug-bash
[Top][All Lists]
Advanced

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

Re: Double-quoting of commandline args (problem if $1 as a string of mor


From: Chris F.A. Johnson
Subject: Re: Double-quoting of commandline args (problem if $1 as a string of more than 1 char)
Date: Sat, 2 Apr 2005 16:58:47 -0500 (EST)

On Sat, 2 Apr 2005, root wheel wrote:

Configuration Information [Automatically generated, do
not change]:
Machine: i586
OS: linux
Compiler: gcc -I/usr/src/packages/BUILD/bash-2.05b
-L/usr/src/packages/BUILD/bash-2.05b/../readline-4.3
Compilation CFLAGS:  -DPROGRAM='bash'
-DCONF_HOSTTYPE='i586' -DCONF_OSTYPE='linux'
-DCONF_MACHTYPE='i586-suse-linux' -DCONF_VENDOR='suse'
-DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib
-O2 -march=i586 -mcpu=i686 -fmessage-length=0
-D_GNU_SOURCE -Wall -pipe -g -fbranch-probabilities
uname output: Linux laptop 2.4.21-99-athlon #1 Wed Sep
24 13:34:32 UTC 2003 i686 athlon i386 GNU/Linux
Machine Type: i586-suse-linux

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

Description:
       [Detailed description of the problem,
suggestion, or complaint.]


Double-quoting of commandline args seems to be broken
for $10 and above
if $1 is a double-quoted string of more than one
character.

  From the man page:

   Positional Parameters
       ....

       When a positional parameter consisting of more than a single  digit  is
       expanded, it must be enclosed in braces (see EXPANSION below).

--
        Chris F.A. Johnson                      http://cfaj.freeshell.org
        =================================================================
                Everything in moderation -- including moderation




reply via email to

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