<br><br><div class="gmail_quote">On Thu, Oct 7, 2010 at 11:49 AM, Chris Muller <span dir="ltr">&lt;<a href="mailto:ma.chris.m@gmail.com">ma.chris.m@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
To get the first argument to the Smalltalk startup script we have:<br>
<br>
   Smalltalk getSystemAttribute: 3<br>
<br>
but does anyone know whether this can be an argument with spaces?<br></blockquote><div><br></div><div>Of course.  Try it and see.  This is a shell issue.  What&#39;s the syntax to supply an arg containing spaces.  On Unix there are two^H^H^Hthree^H^H^H^H^Hfour ways.  Escape spaces with back slashes, use IFS to make space a non-separator and separate words using e.g. TAB (I think this works), surround the argument with single quotes or surround the arg with double quotes.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I actually want to allow the Linux user to specify a chunk of code<br>
(which contains spaces) on the command-line.<br>
<br>
I tried enclosing it in ticks, but Squeak still loaded each<br>
system-attribute into its own slot.  Interestingly, it did not include<br>
the beginning or ending tick.<br>
<br>
So, it looks like I could assemble all of the pieces, separatedBy:<br>
Character space, but that would limit the chunk to 997 &quot;words&quot;..<br>
<br>
</blockquote></div><br>