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: William Park
Subject: Re: Double-quoting of commandline args (problem if $1 as a string of more than 1 char)
Date: Sat, 2 Apr 2005 16:51:07 -0500
User-agent: Mutt/1.4.2i

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 <address@hidden>, Toronto, Canada
Slackware Linux -- because it works.




reply via email to

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