On Mon, 15 Mar 2010 at 01:11AM -0700, Dima Pasechnik wrote:
> Could anyone tell  me the the advantage of
> 
>   ${gapver:=$SAGE_ROOT/spkg/standard/newest_version gap}
>   GAP0=`$gapver`
> 
> over
> 
>  GAP0=`$SAGE_ROOT/spkg/standard/newest_version gap`
> 
> (it was there, but commented out and replaced by the former)
> 
> The "${gapver:=..." does not work on Solaris, so I need a kosher
> replacement.
> Is it to take care of potentially  weird characters in SAGE_ROOT?
> (e.g. spaces, non-ASCII...)
> If yes, what would be the right fix?

If spaces are the concern, using quotes whenever you reference the
variable is the fix: "$SAGE_ROOT/whatever". There are lots of places in
Sage scripts where we should be using quotes to make sure paths with
spaces work properly -- see, for example,
http://trac.sagemath.org/sage_trac/ticket/8303 ...which allows one to
call Sage on scripts whose name or path includes spaces, and needs
review!

Dan

-- 
---  Dan Drake
-----  http://mathsci.kaist.ac.kr/~drake
-------

Attachment: signature.asc
Description: Digital signature

Reply via email to