OOPS: Re: [Openmcl-devel] handling special chars in CCL_DEF_DIR

Barry Perryman gekki_uk at hotmail.com
Wed Feb 12 23:00:16 UTC 2003

sorry I mis-read your question (memo to me - read with brain engaged)

You can try the following as an example, this works on FreeBSD with /bin/sh, 
so should probably work on Darwin/Linux - it's cuts down the need for the 
"'" business.


----------------------------8< CUT HERE >8------------------------------

DD=/home/barry/it\'s\ mine

MYVAR="${DD}" exec "${DD}/${FILE}" "$@"

----------------------------8< CUT HERE >8------------------------------

>From: "Barry Perryman" <gekki_uk at hotmail.com>
>To: helink at sandia.gov, openmcl-devel at clozure.com
>Subject: Re: [Openmcl-devel] handling special chars in CCL_DEF_DIR
>Date: Wed, 12 Feb 2003 22:33:26 +0000
>Can you not do:
>DD=/foo/hamilton\'s\ path/bar/ccl
>when you declare DD at the top of the script?
>>From: "Hamilton Link" <helink at sandia.gov>
>>In the scripts/openmcl script, you may find that openmcl won't be run if 
>>you have a CCL_DEFAULT_DIRECTORY pathname that has special chars in a 
>>directory name (for example "/foo/hamilton's path/bar/ccl").
>>The fix appears to be to wrap the value of CCL_DEFAULT_DIRECTORY in quotes 
>>(or backslash the spaces, etc.) so that you can bind the environment 
>>variable, and replace the original call in scripts/openmcl:
>>with the following:
>>eval CCL_DEFAULT_DIRECTORY='"'${DD}'"' exec '"'${DD}/${OPENMCL_KERNEL}'"' 
>>Caveat emptor. If anyone else can confirm that this works or come up with 
>>something even better before this gets worked into the repo, that'd 
>>probably be best.
>>Openmcl-devel mailing list
>>Openmcl-devel at clozure.com
>Surf together with new Shared Browsing 
>Openmcl-devel mailing list
>Openmcl-devel at clozure.com

It's fast, it's easy and it's free. Get MSN Messenger today! 

More information about the Openmcl-devel mailing list