<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Tech-Recipes - Latest Comments in Bourne/bash shell script functions</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><atom:link href="https://tech-recipes.disqus.com/bournebash_shell_script_functions_bourne_shell_scripting_tech_recipes/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 03 Dec 2009 00:17:33 -0000</lastBuildDate><item><title>Re: Bourne/bash shell script functions</title><link>http://www.tech-recipes.com/rx/541/bournebash-shell-script-functions/#comment-24662718</link><description>&lt;p&gt;Nice tutorial, but i have a lot of problem with control structures in the { } of functions. Today i have a exam, :(&lt;br&gt;Thks a lot! and good blog!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">guille</dc:creator><pubDate>Thu, 03 Dec 2009 00:17:33 -0000</pubDate></item><item><title>Re: Bourne/bash shell script functions</title><link>http://www.tech-recipes.com/rx/541/bournebash-shell-script-functions/#comment-17833253</link><description>&lt;p&gt;You can use return to return the result generated within a function. Please read more about this within the following URL:&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.faqs.org/docs/abs/HTML/functions.html" rel="nofollow noopener" target="_blank" title="http://www.faqs.org/docs/abs/HTML/functions.html"&gt;http://www.faqs.org/docs/ab...&lt;/a&gt;&lt;br&gt;(Example 23-3. Maximum of two numbers)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Penton</dc:creator><pubDate>Wed, 30 Sep 2009 05:21:36 -0000</pubDate></item><item><title>Re: Bourne/bash shell script functions</title><link>http://www.tech-recipes.com/rx/541/bournebash-shell-script-functions/#comment-17172378</link><description>&lt;p&gt;i found some problem with the second code &lt;br&gt;so i modified like this :)&lt;/p&gt;&lt;p&gt;#!/bin/bash&lt;br&gt;sum()&lt;br&gt;{	&lt;br&gt;	if [ -z "$2" ]&lt;br&gt;	then &lt;br&gt;		echo "sum: $1"&lt;br&gt;	else &lt;br&gt;		local a=`expr $1 + $2`&lt;br&gt;		shift 2&lt;br&gt;		sum $a $@&lt;br&gt;	fi&lt;br&gt;}&lt;br&gt;sum 3 5 34&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">neerajnandwana</dc:creator><pubDate>Wed, 23 Sep 2009 01:46:18 -0000</pubDate></item><item><title>Re: Bourne/bash shell script functions</title><link>http://www.tech-recipes.com/rx/541/bournebash-shell-script-functions/#comment-13652811</link><description>&lt;p&gt;The article was very useful. Thanks a ton !!!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vaiju</dc:creator><pubDate>Thu, 30 Jul 2009 05:52:12 -0000</pubDate></item><item><title>Re: Bourne/bash shell script functions</title><link>http://www.tech-recipes.com/rx/541/bournebash-shell-script-functions/#comment-4080125</link><description>&lt;p&gt;wat will be the output of &lt;br&gt;[-z "$2"]; echo $;&lt;br&gt;sh amit&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Khushbu</dc:creator><pubDate>Mon, 01 Dec 2008 02:06:52 -0000</pubDate></item><item><title>Re: Bourne/bash shell script functions</title><link>http://www.tech-recipes.com/rx/541/bournebash-shell-script-functions/#comment-3928726</link><description>&lt;p&gt;simple to understand and very good for bushing up the unix&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">kishroe</dc:creator><pubDate>Fri, 21 Nov 2008 00:57:02 -0000</pubDate></item></channel></rss>