Re: Converting Dos Slashes to Unix Slashes

2004-03-14 Thread zzapper
On Sun, 14 Mar 2004 21:52:24 +0100, wrote: >> From: Igor Pechtchanski >> On Sun, 14 Mar 2004, zzapper wrote: >> >> > From >> > man cygpath >> #!/bin/sh >> # wexp >> # description : Launch Explorer with correct "Windows" path >> explorer "$(cygpath -w "${1:-.}")" > >Even simpler: > >$ cygstart

Re: Converting Dos Slashes to Unix Slashes

2004-03-14 Thread Luc Hermitte
Hello, * On Sun, Mar 14, 2004 at 07:23:24PM +, zzapper <[EMAIL PROTECTED]> wrote: > From > man cygpath > > Look at this generically useful script > [...] > # description : Launch Explorer with correct "Windows" path > [...] You may also check cyg-wrapper.sh (Vim tip #381 BTW) which does sev

RE: Converting Dos Slashes to Unix Slashes

2004-03-14 Thread Hannu E K Nevalainen
> From: Igor Pechtchanski > On Sun, 14 Mar 2004, zzapper wrote: > > > From > > man cygpath > > > > Look at this generically useful script > > > > #!/bin/sh > > # wexp > > # description : Launch Explorer with correct "Windows" path > > if [ "${1}" = "" ]; > > then > > XPATH="."; >

Re: Converting Dos Slashes to Unix Slashes

2004-03-14 Thread Igor Pechtchanski
On Sun, 14 Mar 2004, zzapper wrote: > From > man cygpath > > Look at this generically useful script > > #!/bin/sh > # wexp > # description : Launch Explorer with correct "Windows" path > if [ "${1}" = "" ]; > then > XPATH="."; > else > XPATH="$(cygpath -w "${1}")";

Re: Converting Dos Slashes to Unix Slashes

2004-03-14 Thread zzapper
From man cygpath Look at this generically useful script #!/bin/sh # wexp # description : Launch Explorer with correct "Windows" path if [ "${1}" = "" ]; then XPATH="."; else XPATH="$(cygpath -w "${1}")"; fi explorer $XPATH & zzapper (vim & cygwin & zsh) -- vim -c

Re: Converting Dos Slashes to Unix Slashes

2004-03-14 Thread zzapper
On Sat, 13 Mar 2004 15:22:59 -0500, wrote: > >cygpath --unix "C:\cygwin\bin\cygwin.bat" > Larry, What I needed was cygpath --mixed "C:\aaa\pic" Would still be interested in other solutions/ideas zzapper (vim & cygwin & zsh) -- vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal g

Re: Converting Dos Slashes to Unix Slashes

2004-03-13 Thread Larry Hall
At 03:10 PM 3/13/2004, you wrote: >hi, >I thought I'd write a simple script to allow me to cd to a DOS path >that I had in my paste buffer, turned out to be tricky > >alias doscd='. doscd' >#!bash ># doscd ># description : convert dos paths >result=$(echo $1 | sed "s/\\\/\//g") >\cd $result > > >>

Converting Dos Slashes to Unix Slashes

2004-03-13 Thread zzapper
hi, I thought I'd write a simple script to allow me to cd to a DOS path that I had in my paste buffer, turned out to be tricky alias doscd='. doscd' #!bash # doscd # description : convert dos paths result=$(echo $1 | sed "s/\\\/\//g") \cd $result > doscd "c:\temp\fred" That more or less works b