Jordan Brown writes:
> How do I set an environment variable with a space in it, like LD_PRELOAD 
> with more than one object to load?
> 
> I tried
>       setenv LD_PRELOAD foo bar
>       setenv LD_PRELOAD 'foo bar'
>       setenv LD_PRELOAD "foo bar"
>       setenv LD_PRELOAD foo\ bar
>       setenv LD_PRELOAD (foo bar)
> 
> The only one that wasn't a syntax error was the one with double quotes, and 
> it put the double quotes into the variable's value.
> _______________________________________________
> smf-discuss mailing list
> smf-discuss at opensolaris.org

Jordan,

Since you sent this message to smf-discuss, I assume that you are asking
about setting environment variables for the smf_methods.  You can do this
by setting the method context in the manifest.  For instance

        <method_context>
                <method_environment>
                        <envvar name='LD_PRELOAD' value='foo bar' />
                </method_environment>
        </method_context>

tom

Reply via email to