<div dir="ltr"><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Shenghan Gao</b> <span dir="ltr">&lt;<a href="mailto:sgao9@stevens.edu">sgao9@stevens.edu</a>&gt;</span><br>Date: Fri, Dec 4, 2015 at 9:27 PM<br>Subject: Re: [cs631apue] test-sws.sh<br>To: Jan Schaumann &lt;<a href="mailto:jschauma@stevens.edu">jschauma@stevens.edu</a>&gt;<br><br><br><div dir="ltr"><div>When run the script, it will raise an error like below.</div><div><br></div><div>GET &#39;/file%20space%20%3C%20path%20%3E%20name&#39; HTTP/1.0</div><div>test-sws.sh: 73: printf: %20%: invalid directive </div><div><br></div><div>And the script will stop on it for several seconds. </div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Shenghan </div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 4, 2015 at 8:56 PM, Jan Schaumann <span dir="ltr">&lt;<a href="mailto:jschauma@stevens.edu" target="_blank">jschauma@stevens.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Julian Sexton &lt;<a href="mailto:jsexton@stevens.edu" target="_blank">jsexton@stevens.edu</a>&gt; wrote:<br>
&gt; If anyone else is having trouble getting the test-sws.sh script to<br>
&gt; iterate over the URIs, we found that removing the quotes around<br>
</span>&gt; ?${URIS}? makes it work. Otherwise it seems to be calling ?GET<br>
&gt; every-URI-here HTTP/1.0?.<br>
<br>
Good call.  I had added the quotes to account for spaces in requests,<br>
but shell-quoting being what it is, that lead to the problem you<br>
described.  I&#39;ve updated the script to fix that.<br>
<br>
Goes to show what you get when you make a quick change without testing<br>
it...<br>
<br>
-Jan<br>
_______________________________________________<br>
cs631apue mailing list<br>
<a href="mailto:cs631apue@lists.stevens.edu" target="_blank">cs631apue@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs631apue" rel="noreferrer" target="_blank">https://lists.stevens.edu/mailman/listinfo/cs631apue</a><br>
</blockquote></div><br></div>
</div></div></div><br></div>