It is currently Mon, 01 Sep 2014 04:10:56 GMT



 
Author Message
 double slash in path (Cygwin & zsh)
I don't know if this is an issue with zsh, cygwin, or "which", but
maybe someone knows.

When using Cygwin, if I type "which perl", and I'm using the bash
shell, I get:

/cygdrive/c/Perl/bin/perl

as my answer. If I switch to zsh and type the same thing ("which
perl"), I get:

/cygdrive/c/Perl/bin//perl

with a double slash in the path. Since the only variable that changed
is the shell, I'm guessing it's the shell's doing, but I'm not sure.

Any idea what that double slash is about?

Thanks.



 Fri, 15 Jul 2005 15:36:22 GMT   
 double slash in path (Cygwin & zsh)
On 26 Jan 2003 23:36:22 -0800, Tuang <tuang...@hotmail.com> wrote:
[...]

Check your PATH variable, there's probably
/cygdrive/c/Perl/bin/ in it instead of /cygdrive/c/Perl/bin

which is built in zsh, that may be  why you get a different
result than with /usr/bin/which. (with the /usr/bin/which I have
here, I get a double / also, also with pdksh "type")

--
Stphane



 Fri, 15 Jul 2005 16:38:58 GMT   
 double slash in path (Cygwin & zsh)

I'm using Cygin/bash and do not get symptoms with my zsh 4.0.6.
It might related to what your path is.  I get '/usr/bin/perl'
with bash/which.  Here's my PATH (haven't experienced any probs
with it):

.:/home/tec/bin:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/COMMAND

HTH

Tim

- Show quoted text -



 Fri, 15 Jul 2005 19:25:12 GMT   
 double slash in path (Cygwin & zsh)

Just to add that, as you probably know, the double slash will be
treated as a single slash in path names, so there is no real need
for concern.

John.



 Sat, 16 Jul 2005 17:54:02 GMT   
 
   [ 4 post ] 

Similar Threads

1. CYGWIN zsh problem

2. cygwin zsh problem with FC edit on windows nt

3. reverse proxying, double-authentication and trailing slashes

4. dot slash commands and paths during telnet

5. Replace with SED, slashes in path

6. Bash path question in Cygwin

7. cygwin bash path problem

8. zsh: if [[ why-double-brackets ]]

9. Trying to change PATH in BASH under Cygwin

10. Symbolic links to directories: slash or no slash?


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software