* RE: Space in PATH replaced with :?!
@ 2001-03-30 6:58 Glen Coakley
0 siblings, 0 replies; 5+ messages in thread
From: Glen Coakley @ 2001-03-30 6:58 UTC (permalink / raw)
To: 'Johan Niklasson'; +Cc: cygwin
This may result from an interaction with the shell IFS separator. Before
running tr, try "setenv IFS '#'" and see what happens.
Don't forget to reset it to a space when you are done. :-)
________________________________
Glen Coakley, Sr. Software Engineer
MQSoftware Inc., (763) 543-4845
Have you ever wonder what happens when you run "rm -rf / " but been afraid
to try it?
> -----Original Message-----
> From: Johan Niklasson [ mailto:Johan.Niklasson@uab.ericsson.se ]
> Sent: Thursday, March 29, 2001 1:30 AM
> To: friedman_hill ernest j
> Cc: cygwin@cygwin.com
> Subject: Re: Space in PATH replaced with :?!
>
>
> Hi!
>
> Thanx for the tip. For a while I had hope. Unfortunately when
> I use the
> command in a .csh-file
> cygpath, like tr and sed, also replaces space with a :.
> I write like this:
> set path = `cygpath -p -u "${PATH}"`
> and out comes the distorted PATH as described before. I really think
> this is a problem with my settings.
> However if noone knows the solution at least cygpath helps me find the
> correct short names for my path
>
> Best regards
> Johan
>
> friedman_hill ernest j wrote:
> >
> > Use the "cygpath" path translation utility that comes with
> > cygwin. It's quite smart and can properly translate paths in both
> > directions, including nasty stuff like drive letters, UNC
> names, etc.
> >
> > I think Johan Niklasson wrote:
> > > Hi!
> > >
> > > On NT4 sp 4, cygwin 1.1.8
> > > I have a problem with my path getting distorted by tr and sed.
> > > I do not want to change my path to the old DOS-form~2
> > >
> > > I wonder if there is some setting I have wrong, or do I
> simply have to
> > > live with this problem, as suggested by the FAQ?
> > >
> > > My path shall look like this:
> > >
> > >
> /bin:cygwin/usr/include:.:/usr/bin:/usr/lib:/Winnt/System32/:/Program
> > > Files/ESOE/Microsoft Visual Studio/Common/MSDev98/Bin:/Program
> > > Files/ESOE/Microsoft Visual Studio/VC60/bin.....
> > >
> > > But after issuing this command in a tcsh
> > > set path = `echo $PATH | tr : '\n' | grep -v "LM_"`
> > >
> > > it looks like:
> > >
> > >
> /bin:cygwin/usr/include:.:/usr/bin:/usr/lib:/Winnt/System32/:/
> Program:Files/ESOE/Microsoft:Visual:Studio/Common/MSDev98/Bin:
> /Program:Files/ESOE/Microsoft:Visual:Studio/VC60/bin.....
> > >
> > > which gives me problems to use VS compiler.
> > >
> > > Some of the setting I have is:
> > > CYGWIN=tty ntea ntsec
> > > TERM=ansi
> > > TERMCAP=C:\etc\termcap
> > >
> > > If anyone has a solution this problem I'd be most grateful.
> > >
> > > Best regards
> > > Johan Niklasson
> > > --
> > >
> > > --
> > > Want to unsubscribe from this list?
> > > Check out: http://cygwin.com/ml/#unsubscribe-simple
> > >
> >
>
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Space in PATH replaced with :?!
2001-03-28 8:12 ` friedman_hill ernest j
@ 2001-03-29 18:12 ` Johan Niklasson
0 siblings, 0 replies; 5+ messages in thread
From: Johan Niklasson @ 2001-03-29 18:12 UTC (permalink / raw)
To: friedman_hill ernest j; +Cc: cygwin
Hi!
Thanx for the tip. For a while I had hope. Unfortunately when I use the
command in a .csh-file
cygpath, like tr and sed, also replaces space with a :.
I write like this:
set path = `cygpath -p -u "${PATH}"`
and out comes the distorted PATH as described before. I really think
this is a problem with my settings.
However if noone knows the solution at least cygpath helps me find the
correct short names for my path
Best regards
Johan
friedman_hill ernest j wrote:
>
> Use the "cygpath" path translation utility that comes with
> cygwin. It's quite smart and can properly translate paths in both
> directions, including nasty stuff like drive letters, UNC names, etc.
>
> I think Johan Niklasson wrote:
> > Hi!
> >
> > On NT4 sp 4, cygwin 1.1.8
> > I have a problem with my path getting distorted by tr and sed.
> > I do not want to change my path to the old DOS-form~2
> >
> > I wonder if there is some setting I have wrong, or do I simply have to
> > live with this problem, as suggested by the FAQ?
> >
> > My path shall look like this:
> >
> > /bin:cygwin/usr/include:.:/usr/bin:/usr/lib:/Winnt/System32/:/Program
> > Files/ESOE/Microsoft Visual Studio/Common/MSDev98/Bin:/Program
> > Files/ESOE/Microsoft Visual Studio/VC60/bin.....
> >
> > But after issuing this command in a tcsh
> > set path = `echo $PATH | tr : '\n' | grep -v "LM_"`
> >
> > it looks like:
> >
> > /bin:cygwin/usr/include:.:/usr/bin:/usr/lib:/Winnt/System32/:/Program:Files/ESOE/Microsoft:Visual:Studio/Common/MSDev98/Bin:/Program:Files/ESOE/Microsoft:Visual:Studio/VC60/bin.....
> >
> > which gives me problems to use VS compiler.
> >
> > Some of the setting I have is:
> > CYGWIN=tty ntea ntsec
> > TERM=ansi
> > TERMCAP=C:\etc\termcap
> >
> > If anyone has a solution this problem I'd be most grateful.
> >
> > Best regards
> > Johan Niklasson
> > --
> >
> > --
> > Want to unsubscribe from this list?
> > Check out: http://cygwin.com/ml/#unsubscribe-simple
> >
>
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Space in PATH replaced with :?!
2001-03-28 7:42 Johan Niklasson
2001-03-28 8:04 ` malcolm.boekhoff
@ 2001-03-28 8:12 ` friedman_hill ernest j
2001-03-29 18:12 ` Johan Niklasson
1 sibling, 1 reply; 5+ messages in thread
From: friedman_hill ernest j @ 2001-03-28 8:12 UTC (permalink / raw)
To: Johan Niklasson; +Cc: cygwin
Use the "cygpath" path translation utility that comes with
cygwin. It's quite smart and can properly translate paths in both
directions, including nasty stuff like drive letters, UNC names, etc.
I think Johan Niklasson wrote:
> Hi!
>
> On NT4 sp 4, cygwin 1.1.8
> I have a problem with my path getting distorted by tr and sed.
> I do not want to change my path to the old DOS-form~2
>
> I wonder if there is some setting I have wrong, or do I simply have to
> live with this problem, as suggested by the FAQ?
>
> My path shall look like this:
>
> /bin:cygwin/usr/include:.:/usr/bin:/usr/lib:/Winnt/System32/:/Program
> Files/ESOE/Microsoft Visual Studio/Common/MSDev98/Bin:/Program
> Files/ESOE/Microsoft Visual Studio/VC60/bin.....
>
> But after issuing this command in a tcsh
> set path = `echo $PATH | tr : '\n' | grep -v "LM_"`
>
> it looks like:
>
> /bin:cygwin/usr/include:.:/usr/bin:/usr/lib:/Winnt/System32/:/Program:Files/ESOE/Microsoft:Visual:Studio/Common/MSDev98/Bin:/Program:Files/ESOE/Microsoft:Visual:Studio/VC60/bin.....
>
> which gives me problems to use VS compiler.
>
> Some of the setting I have is:
> CYGWIN=tty ntea ntsec
> TERM=ansi
> TERMCAP=C:\etc\termcap
>
> If anyone has a solution this problem I'd be most grateful.
>
> Best regards
> Johan Niklasson
> --
>
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple
>
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9012 ejfried@ca.sandia.gov
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Space in PATH replaced with :?!
2001-03-28 7:42 Johan Niklasson
@ 2001-03-28 8:04 ` malcolm.boekhoff
2001-03-28 8:12 ` friedman_hill ernest j
1 sibling, 0 replies; 5+ messages in thread
From: malcolm.boekhoff @ 2001-03-28 8:04 UTC (permalink / raw)
To: cygwin
I don't know whether this is any good, but I take MS VC out of the path in my scripts like this:
PATH=`echo $PATH | tr : \\\\n | tr [A-Z] [a-z] | sed "/program files/d" | tr \\\\n :`; export PATH
This removes all the paths with "program files" in them from my PATH.
On 2001-03-28 17:42:32, Johan Niklasson wrote:
> Hi!
>
> On NT4 sp 4, cygwin 1.1.8
> I have a problem with my path getting distorted by tr and sed.
> I do not want to change my path to the old DOS-form~2
>
> I wonder if there is some setting I have wrong, or do I simply have to
> live with this problem, as suggested by the FAQ?
>
> My path shall look like this:
>
> /bin:cygwin/usr/include:.:/usr/bin:/usr/lib:/Winnt/System32/:/Program
> Files/ESOE/Microsoft Visual Studio/Common/MSDev98/Bin:/Program
> Files/ESOE/Microsoft Visual Studio/VC60/bin.....
>
> But after issuing this command in a tcsh
> set path = `echo $PATH | tr : '\n' | grep -v "LM_"`
>
> it looks like:
>
> /bin:cygwin/usr/include:.:/usr/bin:/usr/lib:/Winnt/System32/:/Program:Files/ESOE/Microsoft:Visual:Studio/Common/MSDev98/Bin:/Program:Files/ESOE/Microsoft:Visual:Studio/VC60/bin.....
>
> which gives me problems to use VS compiler.
>
> Some of the setting I have is:
> CYGWIN=tty ntea ntsec
> TERM=ansi
> TERMCAP=C:\etc\termcap
>
> If anyone has a solution this problem I'd be most grateful.
>
> Best regards
> Johan Niklasson
> --
>
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Space in PATH replaced with :?!
@ 2001-03-28 7:42 Johan Niklasson
2001-03-28 8:04 ` malcolm.boekhoff
2001-03-28 8:12 ` friedman_hill ernest j
0 siblings, 2 replies; 5+ messages in thread
From: Johan Niklasson @ 2001-03-28 7:42 UTC (permalink / raw)
To: cygwin
Hi!
On NT4 sp 4, cygwin 1.1.8
I have a problem with my path getting distorted by tr and sed.
I do not want to change my path to the old DOS-form~2
I wonder if there is some setting I have wrong, or do I simply have to
live with this problem, as suggested by the FAQ?
My path shall look like this:
/bin:cygwin/usr/include:.:/usr/bin:/usr/lib:/Winnt/System32/:/Program
Files/ESOE/Microsoft Visual Studio/Common/MSDev98/Bin:/Program
Files/ESOE/Microsoft Visual Studio/VC60/bin.....
But after issuing this command in a tcsh
set path = `echo $PATH | tr : '\n' | grep -v "LM_"`
it looks like:
/bin:cygwin/usr/include:.:/usr/bin:/usr/lib:/Winnt/System32/:/Program:Files/ESOE/Microsoft:Visual:Studio/Common/MSDev98/Bin:/Program:Files/ESOE/Microsoft:Visual:Studio/VC60/bin.....
which gives me problems to use VS compiler.
Some of the setting I have is:
CYGWIN=tty ntea ntsec
TERM=ansi
TERMCAP=C:\etc\termcap
If anyone has a solution this problem I'd be most grateful.
Best regards
Johan Niklasson
--
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-03-30 6:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-30 6:58 Space in PATH replaced with :?! Glen Coakley
-- strict thread matches above, loose matches on Subject: below --
2001-03-28 7:42 Johan Niklasson
2001-03-28 8:04 ` malcolm.boekhoff
2001-03-28 8:12 ` friedman_hill ernest j
2001-03-29 18:12 ` Johan Niklasson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).