On Sun, Jun 04, 2006 at 01:33:41PM +0200, Edwin Leuven wrote:

> Juergen Spitzmueller wrote:
> > if test -z "$COMSPEC" || test -z "$ComSpec"; then SEP=':'; else SEP=';'; fi
> > 
> > Edwin, does the situation improve if you change that?
> 
> i have different script here (that looks ok):

It is exactly equivalent to the other one. Here you assume you have
a dosish separator if either $COMSPEC *or* $ComSpec is not empty.
A && B == !(!A || !B)

> DOSISH=no
> case `uname -s` in
>    CYGWIN*|Cygwin*|cygwin*)
>      # MikTeX's kpsewhich says "kpathsea emulation version x.x.x", whereas
>      # teTeX's simply "kpathsea version x.x.x".
>      if kpsewhich --version | grep emulation >/dev/null 2>&1; then 
> DOSISH=yes; fi
>      ;;
>    *) if test -n "$COMSPEC" || test -n "$ComSpec"; then DOSISH=yes; fi
> esac
> if test "$DOSISH" = "no"; then SEP=':'; else SEP=';'; fi
> 
> 

-- 
Enrico

Reply via email to