delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/08/13:14:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: Markus Hoenicka <Markus DOT Hoenicka AT uth DOT tmc DOT edu>
MIME-Version: 1.0
Message-ID: <15338.52203.461000.127354@gargle.gargle.HOWL>
Date: Thu, 8 Nov 2001 18:16:11 +0000
To: cygwin AT cygwin DOT com
Subject: semicolon colon separated env vars to unix and viceversa
In-Reply-To: <OF77D5934B.B98E7E47-ONC1256AFE.005D98E0@uk.marconicomms.com>
References: <OF77D5934B DOT B98E7E47-ONC1256AFE DOT 005D98E0 AT uk DOT marconicomms DOT com>
X-Mailer: VM 6.94 under Emacs 20.6.1

The question is why you would want to do this in the first place. I'm
not aware of a Cygwin JRE, and if you use Sun's native Win32 JRE,
it will not understand the Unix format afaik.

regards,
Markus

Enrico Spinielli writes:
 > Hi,
 > I wanted to transform my CLASSPATH env var settings (yes, I
 > am using Java :-) from Windows format (semicoln-separated
 > list of win paths) to Unix format (colon separated list of
 > unix paths) and here is an excerpt of the script I have written:
 >      #!/bin/bash
 >      # change an env var from Windows format (semicolon separated)
 >      # to Unix format (colon separated)
 >      IFS=@
 >      for i in ${1//;/@}
 >      do
 >           a=${a}:$(cygpath -u $i)
 >      done
 >      echo $a
 > 
 > This works fine but I am wondering if there is something else
 > given that PATH is automatically converted by cygwin...
 > 
 > Any idea?
 > bye
 > Enrico
 > 
 > 
 > --
 > Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
 > Bug reporting:         http://cygwin.com/bugs.html
 > Documentation:         http://cygwin.com/docs.html
 > FAQ:                   http://cygwin.com/faq/
 > 

-- 
Markus Hoenicka, PhD
UT Houston Medical School
Dept. of Integrative Biology and Pharmacology
6431 Fannin MSB4.114
Houston, TX 77030
(713) 500-6313, -7477
(713) 500-7444 (fax)
Markus DOT Hoenicka AT uth DOT tmc DOT edu
http://ourworld.compuserve.com/homepages/hoenicka_markus/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019