
<?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=last_command_exit_status</id>
		<title>last command exit status - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.thelinuxwiki.com/index.php?action=history&amp;feed=atom&amp;title=last_command_exit_status"/>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=last_command_exit_status&amp;action=history"/>
		<updated>2026-05-13T23:07:11Z</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=last_command_exit_status&amp;diff=787&amp;oldid=prev</id>
		<title>Nighthawk: Created page with &quot;useful in bash to execute a command based on the previous command's exit status    if [ $? == 0 ]; then     echo &quot;last command worked dude! exit status was 0&quot;  fi   if [ $? ==...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=last_command_exit_status&amp;diff=787&amp;oldid=prev"/>
				<updated>2014-05-31T16:47:07Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;useful in bash to execute a command based on the previous command&amp;#039;s exit status    if [ $? == 0 ]; then     echo &amp;quot;last command worked dude! exit status was 0&amp;quot;  fi   if [ $? ==...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;useful in bash to execute a command based on the previous command's exit status&lt;br /&gt;
 &lt;br /&gt;
 if [ $? == 0 ]; then &lt;br /&gt;
   echo &amp;quot;last command worked dude! exit status was 0&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
 if [ $? == 1 ]; then &lt;br /&gt;
   echo &amp;quot;last command failed dude! exit status was 1&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
[[category:bash]]&lt;/div&gt;</summary>
		<author><name>Nighthawk</name></author>	</entry>

	</feed>