[prev in list] [next in list] [prev in thread] [next in thread]
List: ast-users
Subject: [ast-users] parsing problem with 'set'
From: gsf () research ! att ! com (Glenn Fowler)
Date: 2008-01-08 17:11:45
Message-ID: 200801082211.m08MBhnl029912 () penguin ! research ! att ! com
[Download RAW message or body]
in general -- can be used to separate options from operands
so try
set -- $X
On Tue, 8 Jan 2008 16:59:41 -0500 gene golub wrote:
> I came accross of interesting problem and wanted to know if you have more e> legant \
> solution than I have. I often use awk to produce a list of strings which I parse \
> after it next wa> y: X="111 222 333"
> set $X
> A=$1
> B=$2
> C=$3
>
> All worked till recently I got values like this:
> X="-2.53 -4.5 5"
> set $X
> ... produces:
>
> set: Unknown option "-2"set: Usage: set [+-abCefhikKmnptuvxX] [+-o option] > [-s] \
> [+-A name] [arg ...]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic