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

Barry Perryman gekki_uk at hotmail.com
Wed Feb 12 15:00:16 PST 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.

Barry

----------------------------8< CUT HERE >8------------------------------
#!/bin/sh

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

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?
>
>Barry
>
>>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:
>>
>>CCL_DEFAULT_DIRECTORY=${DD} exec ${DD}/${OPENMCL_KERNEL} "$@"
>>
>>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.
>>
>>hamilton
>>
>>
>>
>>_______________________________________________
>>Openmcl-devel mailing list
>>Openmcl-devel at clozure.com
>>http://clozure.com/cgi-bin/mailman/listinfo/openmcl-devel
>
>_________________________________________________________________
>Surf together with new Shared Browsing 
>http://join.msn.com/?page=features/browse&pgmarket=en-gb&XAPID=74&DI=1059
>
>
>_______________________________________________
>Openmcl-devel mailing list
>Openmcl-devel at clozure.com
>http://clozure.com/cgi-bin/mailman/listinfo/openmcl-devel

_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://messenger.msn.co.uk



More information about the Openmcl-devel mailing list