Re: strange shell output using tcsh under Cygwin

2017-11-07 Thread cyg Simple
On 11/6/2017 2:46 PM, Will Parsons wrote: > > But regardless of solving the original problem, I'd still like to know why > the original script doesn't work under tcsh only. > >From what I read of your original thread, it did work. You asked tr to substitute ':' for '\n' and it did. Your PATH c

RE: tcsh path conversion messed up? [was: strange shell output using tcsh under Cygwin]

2017-11-07 Thread Lemke, Michael ST/HZA-ZIC2
On Tuesday, November 07, 2017 7:12 AM Brian Inglis wrote: >On 2017-11-06 14:59, Will Parsons wrote: >> Will Parsons wrote: >>> I asked about what I thought was a shell scripting problem: >>> >>> PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/c/Windows/system32:/c/Windows:/c/Windows/system32/wbem:

Re: tcsh path conversion messed up? [was: strange shell output using tcsh under Cygwin]

2017-11-06 Thread Brian Inglis
On 2017-11-06 14:59, Will Parsons wrote: > Will Parsons wrote: >> I asked about what I thought was a shell scripting problem: >> >> Will Parsons wrote: >>> Under Unix-type platforms, checking on what the PATH variable is set to is >>> pretty easy - I typically use "env" and the displayed value of P

Re: tcsh path conversion messed up? [was: strange shell output using tcsh under Cygwin]

2017-11-06 Thread Will Parsons
Will Parsons wrote: > I asked about what I thought was a shell scripting problem: > > Will Parsons wrote: >> Under Unix-type platforms, checking on what the PATH variable is set to is >> pretty easy - I typically use "env" and the displayed value of PATH is easily >> parsed by eye. Under Cygwin/Wi

tcsh path conversion messed up? [was: strange shell output using tcsh under Cygwin]

2017-11-06 Thread Will Parsons
I asked about what I thought was a shell scripting problem: Will Parsons wrote: > Under Unix-type platforms, checking on what the PATH variable is set to is > pretty easy - I typically use "env" and the displayed value of PATH is easily > parsed by eye. Under Cygwin/Windows, one can do the same,

Re: strange shell output using tcsh under Cygwin

2017-11-06 Thread Will Parsons
Lemke, Michael ST/HZA-ZIC2 wrote: > On Mon, 6 Nov 2017 00:15:25 + (UTC) > Will Parsons wrote: > >>Under Unix-type platforms, checking on what the PATH variable is set to is >>pretty easy - I typically use "env" and the displayed value of PATH is easily >>parsed by eye. Under Cygwin/Windows, o

Re: strange shell output using tcsh under Cygwin

2017-11-06 Thread Will Parsons
Andrey Repin wrote: > Greetings, Will Parsons! > >> I thought it would be nice to write a simple script to make this more >> comprehensible by breaking the path into separate lines, and so wrote the >> following trivial script: > >>#!/bin/sh >>echo $PATH | tr ':' '\n' > > Try > > echo "$P

Re: strange shell output using tcsh under Cygwin

2017-11-06 Thread Lemke, Michael ST/HZA-ZIC2
On Mon, 6 Nov 2017 00:15:25 + (UTC) Will Parsons wrote: >Under Unix-type platforms, checking on what the PATH variable is set to is >pretty easy - I typically use "env" and the displayed value of PATH is easily >parsed by eye. Under Cygwin/Windows, one can do the same, but the value of >PATH

Re: strange shell output using tcsh under Cygwin

2017-11-05 Thread Andrey Repin
Greetings, Will Parsons! > I thought it would be nice to write a simple script to make this more > comprehensible by breaking the path into separate lines, and so wrote the > following trivial script: >#!/bin/sh >echo $PATH | tr ':' '\n' Try echo "$PATH" next time. Never trust rando

strange shell output using tcsh under Cygwin

2017-11-05 Thread Will Parsons
Under Unix-type platforms, checking on what the PATH variable is set to is pretty easy - I typically use "env" and the displayed value of PATH is easily parsed by eye. Under Cygwin/Windows, one can do the same, but the value of PATH is more likely to be considerably more complicated and harder for