Article View: pl.comp.lang.tcl
Article #563Re: Jak sobie z tym radzicie?
From: ZB
Date: Fri, 01 Feb 2008 18:19
Date: Fri, 01 Feb 2008 18:19
25 lines
1300 bytes
1300 bytes
Dnia 01.02.2008 Stachu 'Dozzie' K. napisał/a:
>> Prosty przykład:
>>
>> puts [exec abc]
>>
>> Problem powstanie gdy "abc" zwróci coś z [] itp.
>
> Naprawdę? To mój tclsh jeszcze o tym nie wie.
> #v+
> [dozzie@dynamit dozzie]$ tclsh <<<'puts [exec echo {aaa[]bbb}]'
> aaa[]bbb
> [dozzie@dynamit dozzie]$
> #v-
Być może Koledze chodzi o sytuacje bardziej specyficzne, np.:
puts [exec echo [info body]]
Wtedy może coś takiego wystarczy? Przykład dla Tcl 8.5:
puts [exec {*}{echo [info body]}]
--
ZB
Technical Details
Message-ID:
<slrnfq6olp.cqf.zbREMOVE_THIS@sarge.my.own.domain.no-net>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.nask.pl!news.nask.org.pl!news.internetia.pl!news.astercity.net!news.aster.pl!not-for-mailReferences:
<47a346dc$1@news.home.net.pl> <slrnfq6i6c.1di.dozzie@edq.zsh.bash.org.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.nask.pl!news.nask.org.pl!news.internetia.pl!news.astercity.net!news.aster.pl!not-for-mail Newsgroups: pl.comp.lang.tcl From: ZB <zbREMOVE_THIS@AND_THISispid.com.pl> Subject: Re: Jak sobie z tym radzicie? References: <47a346dc$1@news.home.net.pl> <slrnfq6i6c.1di.dozzie@edq.zsh.bash.org.pl> Message-ID: <slrnfq6olp.cqf.zbREMOVE_THIS@sarge.my.own.domain.no-net> Mime-Version: 1.0 User-Agent: slrn/0.9.8.1pl1 (Debian) Date: 01 Feb 2008 18:19:34 GMT Lines: 25 NNTP-Posting-Date: 01 Feb 2008 18:19:34 GMT NNTP-Posting-Host: 77.236.6.157 X-Trace: 1201889974 mamut2.aster.pl 6179 77.236.6.157:46358 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit