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=3D"111 222 333"
> set $X
> A=3D$1
> B=3D$2
> C=3D$3
> =20
> All worked till recently I got values like this:
> X=3D"-2.53 -4.5 5"
> set $X
> ... produces:
> =20
> set: Unknown option "-2"set: Usage: set [+-abCefhikKmnptuvxX] [+-o option] =
> [-s] [+-A name] [arg ...]

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to