<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>评论：shell函数的6个特点</title>
	<atom:link href="http://blog.51yip.com/shell/1118.html/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.51yip.com/shell/1118.html</link>
	<description>－－一步，二步，三步，N步，二行脚印</description>
	<lastBuildDate>Tue, 07 Jun 2022 01:26:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：sun</title>
		<link>http://blog.51yip.com/shell/1118.html/comment-page-1#comment-6753</link>
		<dc:creator>sun</dc:creator>
		<pubDate>Wed, 25 Sep 2013 14:31:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=1118#comment-6753</guid>
		<description>取返回值还有个特性：
function testfunc(){ 
echo &quot;abc&quot;
 }
var1=$(testfunc)  // var1=abc
var2=`testfunc`    // var2=abc
对函数的调用，用var=$(函数名)或var=`函数名`的方式，可以把函数里面的最后一个echo &quot;value&quot;取到，可以当作返回值来使用</description>
		<content:encoded><![CDATA[<p>取返回值还有个特性：<br />
function testfunc(){<br />
echo "abc"<br />
 }<br />
var1=$(testfunc)  // var1=abc<br />
var2=`testfunc`    // var2=abc<br />
对函数的调用，用var=$(函数名)或var=`函数名`的方式，可以把函数里面的最后一个echo "value"取到，可以当作返回值来使用</p>
]]></content:encoded>
	</item>
</channel>
</rss>
