
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.thelinuxwiki.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.thelinuxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Bash_function</id>
		<title>Bash function - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.thelinuxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Bash_function"/>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=Bash_function&amp;action=history"/>
		<updated>2026-04-29T01:26:45Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.5</generator>

	<entry>
		<id>http://www.thelinuxwiki.com/index.php?title=Bash_function&amp;diff=94&amp;oldid=prev</id>
		<title>Nighthawk: Pushed from Themanclub.</title>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=Bash_function&amp;diff=94&amp;oldid=prev"/>
				<updated>2013-02-25T22:22:53Z</updated>
		
		<summary type="html">&lt;p&gt;Pushed from Themanclub.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;bash function structure&lt;br /&gt;
  functions ''function_name'' {&lt;br /&gt;
    command 1&lt;br /&gt;
    command 2&lt;br /&gt;
    ...&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== function with argument and return string ==&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 function pass_back_a_string() {&lt;br /&gt;
         eval $1=foo&lt;br /&gt;
 }&lt;br /&gt;
 return_var=''&lt;br /&gt;
 pass_back_a_string return_var&lt;br /&gt;
 echo $return_var&lt;br /&gt;
&lt;br /&gt;
Prints &amp;quot;foo&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[category:bash]]&lt;/div&gt;</summary>
		<author><name>Nighthawk</name></author>	</entry>

	</feed>