Mail Delivery (failure bug-bash@gnu.org)
Norman Virus Control a supprimé le message original qui contenait le virus [EMAIL PROTECTED] ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash
Double-quoting of commandline args (problem if $1 as a string of more than 1 char)
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. Repeat-By: [Describe the sequence of events that causes the problem to occur.] [EMAIL PROTECTED] cat foo #!/bin/sh if [ $# -lt 12 ] then echo "need at least 12 args" exit else echo $1 echo $2 echo $3 echo $4 echo $5 echo $6 echo $7 echo $8 echo $9 echo "$10" echo "$11" echo "$12" fi [EMAIL PROTECTED] ./foo 1 2 3 4 5 6 7 8 9 10 11 12 1 2 3 4 5 6 7 8 9 10 11 12 [EMAIL PROTECTED] ./foo "1" "2 2 2" 3 4 5 6 7 "8 8 8" 9 10 11 12 1 2 2 2 3 4 5 6 7 8 8 8 9 10 11 12 [EMAIL PROTECTED] ./foo "1 1" "2 2 2" 3 4 5 6 7 "8 8 8" 9 10 11 12 1 1 2 2 2 3 4 5 6 7 8 8 8 9 1 10 1 11 1 12 [EMAIL PROTECTED] oops. Also broken on later version of bash: [EMAIL PROTECTED]:~> bash --version GNU bash, version 3.00.0(1)-release (i586-suse-linux) Copyright (C) 2004 Free Software Foundation, Inc. [EMAIL PROTECTED]:~> ./foo "1 1" 2 3 "4 4 4" 5 6 7 8 9 10 11 12 1 1 2 3 4 4 4 5 6 7 8 9 1 10 1 11 1 12 [EMAIL PROTECTED]:~> Configuration Information [Automatically generated, do not change]: Machine: i586 OS: linux Compiler: gcc -I/usr/src/packages/BUILD/bash-3.0 -L/usr/src/packages/BUILD/bash-3.0/../readline-5.0 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' -DCONF_OSTYPE='linux' -DCONF_MACHTYPE='i586-suse-linux' -DCONF_VENDOR='suse' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -D_GNU_SOURCE -Wall -pipe -g -fbranch-probabilities uname output: Linux linux 2.6.8-24-default #1 Wed Oct 6 09:16:23 UTC 2004 i686 athlon i386 GNU/Linux Machine Type: i586-suse-linux Bash Version: 3.0 Patch Level: 0 Release Status: release __ Yahoo! Messenger Show us what our next emoticon should look like. Join the fun. http://www.advision.webevents.yahoo.com/emoticontest ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash
Re: Double-quoting of commandline args (problem if $1 as a string of more than 1 char)
root wheel <[EMAIL PROTECTED]> wrote: > echo "$10" Use "${10}". man bash: When a positional parameter consisting of more than a single digit is expanded, it must be enclosed in braces (see EXPANSION below). paul ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash
Re: Double-quoting of commandline args (problem if $1 as a string of more than 1 char)
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 ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash
Re: Double-quoting of commandline args (problem if $1 as a string of more than 1 char)
On Sat, Apr 02, 2005 at 01:17:30PM -0800, root wheel wrote: > 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. > #!/bin/sh > if [ $# -lt 12 ] > then > echo "need at least 12 args" > exit > else > echo $1 > echo $2 > echo $3 > echo $4 > echo $5 > echo $6 > echo $7 > echo $8 > echo $9 > echo "$10" > echo "$11" > echo "$12" > fi Try ${10} -- William Park <[EMAIL PROTECTED]>, Toronto, Canada Slackware Linux -- because it works. ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash
Oklahoma Inc. Yearly Update Your Records
Title: Bank Of Oklahoma Review Team Support Dear valued Oklahoma member: It has come to our attention that your Oklahoma billing updates are out of order. If you could please take 5-10 minutes out of your online experience and update your billing records you will not run into any future problems with the online service. However, failure to update your records will result in account termination. Please update your records by April 10th , 2005. Once you have updated your account records your Oklahoma session will not be interrupted and will continue as normal. Failure to update will result in cancellation of service, Terms of Service (TOS) violations or future billing problems. https://onlinebanking.bankofoklahoma.com/OnlineBanking/login.aspx?ReturnUrl=%2fOnlineBanking%2fDefault.aspx Oklahoma Update Team http://www.bankofoklahoma.com ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash