<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://brandonhutchinson.com/mediawiki/skins/common/feed.css?97"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://brandonhutchinson.com/mediawiki/index.php5?title=Bash:_syntax_error_near_unexpected_token_%60%3B'&amp;action=history&amp;feed=atom</id>
		<title>Bash: syntax error near unexpected token `;' - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://brandonhutchinson.com/mediawiki/index.php5?title=Bash:_syntax_error_near_unexpected_token_%60%3B'&amp;action=history&amp;feed=atom"/>
		<link rel="alternate" type="text/html" href="http://brandonhutchinson.com/mediawiki/index.php5?title=Bash:_syntax_error_near_unexpected_token_%60%3B%27&amp;action=history"/>
		<updated>2013-05-19T04:12:51Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.11.0rc1</generator>

	<entry>
		<id>http://brandonhutchinson.com/mediawiki/index.php5?title=Bash:_syntax_error_near_unexpected_token_%60%3B%27&amp;diff=1328&amp;oldid=prev</id>
		<title>Hutch at 20:10, 4 September 2008</title>
		<link rel="alternate" type="text/html" href="http://brandonhutchinson.com/mediawiki/index.php5?title=Bash:_syntax_error_near_unexpected_token_%60%3B%27&amp;diff=1328&amp;oldid=prev"/>
				<updated>2008-09-04T20:10:29Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:10, 4 September 2008&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Trying to background a command within a shell loop? e.g.,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Trying to background a command within a shell loop? &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;I was when I received this error.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;e.g.,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; # '''for VAR in 1 2 3 ; do ''run_program'' $VAR &amp;amp; ; done'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; # '''for VAR in 1 2 3 ; do ''run_program'' $VAR &amp;amp; ; done'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hutch</name></author>	</entry>

	<entry>
		<id>http://brandonhutchinson.com/mediawiki/index.php5?title=Bash:_syntax_error_near_unexpected_token_%60%3B%27&amp;diff=1327&amp;oldid=prev</id>
		<title>Hutch: New page: Trying to background a command within a shell loop? e.g.,   # '''for VAR in 1 2 3 ; do ''run_program'' $VAR &amp; ; done'''  bash: syntax error near unexpected token `;'  The reason is explain...</title>
		<link rel="alternate" type="text/html" href="http://brandonhutchinson.com/mediawiki/index.php5?title=Bash:_syntax_error_near_unexpected_token_%60%3B%27&amp;diff=1327&amp;oldid=prev"/>
				<updated>2008-09-04T20:10:01Z</updated>
		
		<summary type="html">&lt;p&gt;New page: Trying to background a command within a shell loop? e.g.,   # '''for VAR in 1 2 3 ; do ''run_program'' $VAR &amp;amp; ; done'''  bash: syntax error near unexpected token `;'  The reason is explain...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Trying to background a command within a shell loop? e.g.,&lt;br /&gt;
&lt;br /&gt;
 # '''for VAR in 1 2 3 ; do ''run_program'' $VAR &amp;amp; ; done'''&lt;br /&gt;
 bash: syntax error near unexpected token `;'&lt;br /&gt;
&lt;br /&gt;
The reason is explained [http://ubuntuforums.org/showthread.php?t=504030 here]. Both '''&amp;amp;''' and ''';''' are line terminators; you only need to specify '''&amp;amp;''' before '''done'''.&lt;br /&gt;
&lt;br /&gt;
e.g.,&lt;br /&gt;
 # '''for VAR in 1 2 3 ; do ''program'' $VAR &amp;amp; done'''&lt;br /&gt;
 [1] 7810&lt;br /&gt;
 [2] 7811&lt;br /&gt;
 [3] 7812&lt;br /&gt;
&lt;br /&gt;
* [http://ubuntuforums.org/showthread.php?t=504030 http://ubuntuforums.org/showthread.php?t=504030]&lt;/div&gt;</summary>
		<author><name>Hutch</name></author>	</entry>

	</feed>