* Oleg Verych 

| o `arrays'  bashizm -> tmp=$@ ; set -- $ARRAY ; use_array $@ ; set -- $tmp

This is in no way equivalent (with dash):

[EMAIL PROTECTED]:\w$ set -- "abcd efg" "hij"
[EMAIL PROTECTED]:\w$ echo $@
abcd efg hij
[EMAIL PROTECTED]:\w$ echo $1
abcd efg
[EMAIL PROTECTED]:\w$ tmp="$@"
[EMAIL PROTECTED]:\w$ set -- blah
[EMAIL PROTECTED]:\w$ set -- $tmp
[EMAIL PROTECTED]:\w$ echo $1
abcd
[EMAIL PROTECTED]:\w$

If you need arrays, use bash or a proper programming language.

-- 
Tollef Fog Heen                                                        ,''`.
UNIX is user friendly, it's just picky about who its friends are      : :' :
                                                                      `. `' 
                                                                        `-  


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to