[TAG] http://linuxgazette.net/115/okopnik1.html

Ville Herva vherva at ENIGMA.viasys.com
Fri Jun 3 18:56:38 MSD 2005


Hi,

I enjoyed reading your shell script tutorial - it's always good to remind
oneself of the basics. 

I did however find one slight error - at least I think so. I've attached two
possible patches for it, I can't tell which of them (if either) is
correct...


thanks,


-- v --

v at iki.fi

--- kewl.sh	2005-06-03 08:43:41.756024100 +0300
+++ kewl.sh.1	2005-06-03 08:44:08.443139100 +0300
@@ -13,7 +13,7 @@
 }
 
 echo "Like, I'm thinkin', dude, gimme a minute..."
-sleep 1
+sleep 60
 
 # While the function runs, positional parameters ($1, etc.)
 # refer to those given the function - not the shell script.

--- kewl.sh	2005-06-03 08:43:41.756024100 +0300
+++ kewl.sh.2	2005-06-03 08:44:19.991949100 +0300
@@ -12,7 +12,7 @@
 return 1
 }
 
-echo "Like, I'm thinkin', dude, gimme a minute..."
+echo "Like, I'm thinkin', dude, just a second..."
 sleep 1
 
 # While the function runs, positional parameters ($1, etc.)






More information about the TAG mailing list