<?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 csh/C shell scripts: if statement syntax</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><atom:link href="https://tech-recipes.disqus.com/cshc_shell_scripts_if_statement_syntax_csh_shell_scripting_tech_recipes/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 23 Mar 2011 11:50:45 -0000</lastBuildDate><item><title>Re: csh/C shell scripts: if statement syntax</title><link>http://www.tech-recipes.com/rx/314/cshc-shell-scripts-if-statement-syntax/#comment-170140869</link><description>&lt;p&gt;need more examples&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chisim_obi</dc:creator><pubDate>Wed, 23 Mar 2011 11:50:45 -0000</pubDate></item><item><title>Re: csh/C shell scripts: if statement syntax</title><link>http://www.tech-recipes.com/rx/314/cshc-shell-scripts-if-statement-syntax/#comment-170140520</link><description>&lt;p&gt;need more examples&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chisimobi</dc:creator><pubDate>Wed, 23 Mar 2011 11:50:00 -0000</pubDate></item><item><title>Re: csh/C shell scripts: if statement syntax</title><link>http://www.tech-recipes.com/rx/314/cshc-shell-scripts-if-statement-syntax/#comment-25714065</link><description>&lt;p&gt;Almost? More like completely...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paul</dc:creator><pubDate>Mon, 14 Dec 2009 10:23:12 -0000</pubDate></item><item><title>Re: csh/C shell scripts: if statement syntax</title><link>http://www.tech-recipes.com/rx/314/cshc-shell-scripts-if-statement-syntax/#comment-7110997</link><description>&lt;p&gt;A variation of the above would be:&lt;/p&gt;&lt;p&gt;if ( ! ${?LD_LIBRARY_PATH} ) then&lt;br&gt;  setenv LD_LIBRARY_PATH /usr/lib&lt;br&gt;endif&lt;/p&gt;&lt;p&gt;Use the {} around variables as a habit since the variable names can often interfere with shell syntax.&lt;/p&gt;&lt;p&gt;The semicolon at the end is ignored.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dan</dc:creator><pubDate>Wed, 11 Mar 2009 16:53:34 -0000</pubDate></item><item><title>Re: csh/C shell scripts: if statement syntax</title><link>http://www.tech-recipes.com/rx/314/cshc-shell-scripts-if-statement-syntax/#comment-7110938</link><description>&lt;p&gt;Without concrete examples of how the syntax is actually used, this is almost useless information. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dan</dc:creator><pubDate>Wed, 11 Mar 2009 16:51:14 -0000</pubDate></item><item><title>Re: csh/C shell scripts: if statement syntax</title><link>http://www.tech-recipes.com/rx/314/cshc-shell-scripts-if-statement-syntax/#comment-3595445</link><description>&lt;p&gt;test for the existence of a variable using &lt;br&gt;if ($?LD_LIBRARY_PATH == 0) then&lt;br&gt;   setenv LD_LIBRARY_PATH /usr/lib;&lt;br&gt;endif&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dan</dc:creator><pubDate>Fri, 07 Nov 2008 13:08:25 -0000</pubDate></item></channel></rss>