Re: OT: bash () bei variablen

jens wefer <[email protected]>
Newsgroups gmane.linux.gentoo.user.german
Organization LxSBBS
Message-ID <20130108000538.00002ef7@unknown>
Am Mon, 07 Jan 2013 07:22:25 +0100
schrieb Florian Philipp <[email protected]>:

> Am 07.01.2013 02:27, schrieb jens wefer:
> > 
> > [...]
> > 
> 
> `ip=($ip_neu)` erzeugt ein Array ip. `$ip` gibt dir den ersten
> Eintrag, also genauso wie `${ip[0]}`. Weil du `$ip_neu` nicht escaped
> hast (`ip=("$ip_neu")`), ist jeder Eintrag whitespace-terminiert.
> 
> --
> Florian

echo ${#ip_neu[@]}   gibt 1 aus, also nur 1 element
ip=${ip_neu[0]}      gibt mir alles im test 1219 zeichen
ip=($ip_neu)         gibt 1.ip (getrennt durch space zur 2.
so wie ich dich verstanden hab muesste ${ip_neu[0]} mir auch doie erste
ip geben, tut es aber nicht.

bye, jens.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.