public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: translate UNIX path to DOS path
@ 1999-09-23  1:22 William Gacquer
  1999-09-30 23:42 ` William Gacquer
  0 siblings, 1 reply; 12+ messages in thread
From: William Gacquer @ 1999-09-23  1:22 UTC (permalink / raw)
  To: 'Jan-Friedrich Mutter', cygwin

sorry, misunderstood! that was for \n\r
William

-----Original Message-----
From: Jan-Friedrich Mutter [ mailto:mutter@informatik.uni-muenchen.de ]
Sent: Thursday, September 23, 1999 10:07 AM
To: cygwin@sourceware.cygnus.com
Subject: translate UNIX path to DOS path


Hi,

is there a program or script available which translates UNIX paths to DOS
paths.
E.g.:
/proj is mounted on D:\rootdir\proj

When I do a 'pwd' in /proj, I get /proj, but I need D:\rootdir\proj

Thanks in advance,
Jan.

     Jan-Friedrich Mutter <jmutter@bigfoot.de>
         [ http://www.bigfoot.com/~jmutter ]



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: translate UNIX path to DOS path
  1999-09-23  1:22 translate UNIX path to DOS path William Gacquer
@ 1999-09-30 23:42 ` William Gacquer
  0 siblings, 0 replies; 12+ messages in thread
From: William Gacquer @ 1999-09-30 23:42 UTC (permalink / raw)
  To: 'Jan-Friedrich Mutter', cygwin

sorry, misunderstood! that was for \n\r
William

-----Original Message-----
From: Jan-Friedrich Mutter [ mailto:mutter@informatik.uni-muenchen.de ]
Sent: Thursday, September 23, 1999 10:07 AM
To: cygwin@sourceware.cygnus.com
Subject: translate UNIX path to DOS path


Hi,

is there a program or script available which translates UNIX paths to DOS
paths.
E.g.:
/proj is mounted on D:\rootdir\proj

When I do a 'pwd' in /proj, I get /proj, but I need D:\rootdir\proj

Thanks in advance,
Jan.

     Jan-Friedrich Mutter <jmutter@bigfoot.de>
         [ http://www.bigfoot.com/~jmutter ]



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: translate UNIX path to DOS path
  1999-09-23  1:21 William Gacquer
@ 1999-09-30 23:42 ` William Gacquer
  0 siblings, 0 replies; 12+ messages in thread
From: William Gacquer @ 1999-09-30 23:42 UTC (permalink / raw)
  To: 'Jan-Friedrich Mutter', cygwin

yes , search for "unix2dos" and "dos2unix" using http://ftpsearch.unit.no/

William

-----Original Message-----
From: Jan-Friedrich Mutter [ mailto:mutter@informatik.uni-muenchen.de ]
Sent: Thursday, September 23, 1999 10:07 AM
To: cygwin@sourceware.cygnus.com
Subject: translate UNIX path to DOS path


Hi,

is there a program or script available which translates UNIX paths to DOS
paths.
E.g.:
/proj is mounted on D:\rootdir\proj

When I do a 'pwd' in /proj, I get /proj, but I need D:\rootdir\proj

Thanks in advance,
Jan.

     Jan-Friedrich Mutter <jmutter@bigfoot.de>
         [ http://www.bigfoot.com/~jmutter ]



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: translate UNIX path to DOS path
  1999-09-23  1:21 Schaible, Joerg
@ 1999-09-30 23:42 ` Schaible, Joerg
  0 siblings, 0 replies; 12+ messages in thread
From: Schaible, Joerg @ 1999-09-30 23:42 UTC (permalink / raw)
  To: 'cygwin-list'; +Cc: 'Jan-Friedrich Mutter'

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1351 bytes --]

Extract from my .bashrc:

function dospath
{
    local cr=$(echo -e "\r")
    pushd "$1" > /dev/null 2>&1
    # Use command.com to get 8.3 name,
    # have to remove trailing carriage return
    echo $(command.com /c cd) | sed -e s#$cr##g
    popd > /dev/null 2>&1
}
function dosname
{
    local p=$(dirname "$1")
    local dos=$(dospath "$p")
    local cr=$(echo -e "\r")
    # Use command.com to get 8.3 name,
    # have to remove trailing carriage return
    echo $(dospath "$p")/$(cmd.exe /c dir /x /b $dos\\$(basename "$1")) |
sed -e s#$cr##g
}

Greetings
Jörg

> -----Original Message-----
> From:	Jan-Friedrich Mutter [SMTP:mutter@informatik.uni-muenchen.de]
> Sent:	Thursday, September 23, 1999 10:07 AM
> To:	cygwin@sourceware.cygnus.com
> Subject:	translate UNIX path to DOS path
> 
> Hi,
> 
> is there a program or script available which translates UNIX paths to DOS
> paths.
> E.g.:
> /proj is mounted on D:\rootdir\proj
> 
> When I do a 'pwd' in /proj, I get /proj, but I need D:\rootdir\proj
> 
> Thanks in advance,
> Jan.
> 
>      Jan-Friedrich Mutter <jmutter@bigfoot.de>
>          [ http://www.bigfoot.com/~jmutter ]
> 
> 
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: translate UNIX path to DOS path
  1999-09-23  1:50 ` Glenn Spell
@ 1999-09-30 23:42   ` Glenn Spell
  0 siblings, 0 replies; 12+ messages in thread
From: Glenn Spell @ 1999-09-30 23:42 UTC (permalink / raw)
  To: cygwin

On 23 Sep 1999 around 10:06AM (+0200) Jan-Friedrich Mutter wrote:

> is there a program or script available which translates UNIX paths
> to DOS paths.

'cygpath'

-glenn

-- 
  ________________________________________      _       _____
 )                                        )_ _ (__\____o /_/_ |
 )    Glenn Spell <glenn@gs.fay.nc.us>    )     >-----._/_/__]>
 )________________________________________)               `0  |

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: translate UNIX path to DOS path
  1999-09-23  1:29 ` Keith Starsmeare
@ 1999-09-30 23:42   ` Keith Starsmeare
  0 siblings, 0 replies; 12+ messages in thread
From: Keith Starsmeare @ 1999-09-30 23:42 UTC (permalink / raw)
  To: Jan-Friedrich Mutter; +Cc: cygwin

On Thu, 23 Sep 1999, Jan-Friedrich Mutter wrote:

> is there a program or script available which translates UNIX paths to DOS
> paths.
> E.g.:
> /proj is mounted on D:\rootdir\proj

Yes, cygpath. E.g.:
        cygpath -w /proj

Keith


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* translate UNIX path to DOS path
  1999-09-23  1:13 Jan-Friedrich Mutter
  1999-09-23  1:29 ` Keith Starsmeare
  1999-09-23  1:50 ` Glenn Spell
@ 1999-09-30 23:42 ` Jan-Friedrich Mutter
  2 siblings, 0 replies; 12+ messages in thread
From: Jan-Friedrich Mutter @ 1999-09-30 23:42 UTC (permalink / raw)
  To: cygwin

Hi,

is there a program or script available which translates UNIX paths to DOS
paths.
E.g.:
/proj is mounted on D:\rootdir\proj

When I do a 'pwd' in /proj, I get /proj, but I need D:\rootdir\proj

Thanks in advance,
Jan.

     Jan-Friedrich Mutter <jmutter@bigfoot.de>
         [ http://www.bigfoot.com/~jmutter ]



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: translate UNIX path to DOS path
  1999-09-23  1:13 Jan-Friedrich Mutter
  1999-09-23  1:29 ` Keith Starsmeare
@ 1999-09-23  1:50 ` Glenn Spell
  1999-09-30 23:42   ` Glenn Spell
  1999-09-30 23:42 ` Jan-Friedrich Mutter
  2 siblings, 1 reply; 12+ messages in thread
From: Glenn Spell @ 1999-09-23  1:50 UTC (permalink / raw)
  To: cygwin

On 23 Sep 1999 around 10:06AM (+0200) Jan-Friedrich Mutter wrote:

> is there a program or script available which translates UNIX paths
> to DOS paths.

'cygpath'

-glenn

-- 
  ________________________________________      _       _____
 )                                        )_ _ (__\____o /_/_ |
 )    Glenn Spell <glenn@gs.fay.nc.us>    )     >-----._/_/__]>
 )________________________________________)               `0  |

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: translate UNIX path to DOS path
  1999-09-23  1:13 Jan-Friedrich Mutter
@ 1999-09-23  1:29 ` Keith Starsmeare
  1999-09-30 23:42   ` Keith Starsmeare
  1999-09-23  1:50 ` Glenn Spell
  1999-09-30 23:42 ` Jan-Friedrich Mutter
  2 siblings, 1 reply; 12+ messages in thread
From: Keith Starsmeare @ 1999-09-23  1:29 UTC (permalink / raw)
  To: Jan-Friedrich Mutter; +Cc: cygwin

On Thu, 23 Sep 1999, Jan-Friedrich Mutter wrote:

> is there a program or script available which translates UNIX paths to DOS
> paths.
> E.g.:
> /proj is mounted on D:\rootdir\proj

Yes, cygpath. E.g.:
        cygpath -w /proj

Keith


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: translate UNIX path to DOS path
@ 1999-09-23  1:21 William Gacquer
  1999-09-30 23:42 ` William Gacquer
  0 siblings, 1 reply; 12+ messages in thread
From: William Gacquer @ 1999-09-23  1:21 UTC (permalink / raw)
  To: 'Jan-Friedrich Mutter', cygwin

yes , search for "unix2dos" and "dos2unix" using http://ftpsearch.unit.no/

William

-----Original Message-----
From: Jan-Friedrich Mutter [ mailto:mutter@informatik.uni-muenchen.de ]
Sent: Thursday, September 23, 1999 10:07 AM
To: cygwin@sourceware.cygnus.com
Subject: translate UNIX path to DOS path


Hi,

is there a program or script available which translates UNIX paths to DOS
paths.
E.g.:
/proj is mounted on D:\rootdir\proj

When I do a 'pwd' in /proj, I get /proj, but I need D:\rootdir\proj

Thanks in advance,
Jan.

     Jan-Friedrich Mutter <jmutter@bigfoot.de>
         [ http://www.bigfoot.com/~jmutter ]



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: translate UNIX path to DOS path
@ 1999-09-23  1:21 Schaible, Joerg
  1999-09-30 23:42 ` Schaible, Joerg
  0 siblings, 1 reply; 12+ messages in thread
From: Schaible, Joerg @ 1999-09-23  1:21 UTC (permalink / raw)
  To: 'cygwin-list'; +Cc: 'Jan-Friedrich Mutter'

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1351 bytes --]

Extract from my .bashrc:

function dospath
{
    local cr=$(echo -e "\r")
    pushd "$1" > /dev/null 2>&1
    # Use command.com to get 8.3 name,
    # have to remove trailing carriage return
    echo $(command.com /c cd) | sed -e s#$cr##g
    popd > /dev/null 2>&1
}
function dosname
{
    local p=$(dirname "$1")
    local dos=$(dospath "$p")
    local cr=$(echo -e "\r")
    # Use command.com to get 8.3 name,
    # have to remove trailing carriage return
    echo $(dospath "$p")/$(cmd.exe /c dir /x /b $dos\\$(basename "$1")) |
sed -e s#$cr##g
}

Greetings
Jörg

> -----Original Message-----
> From:	Jan-Friedrich Mutter [SMTP:mutter@informatik.uni-muenchen.de]
> Sent:	Thursday, September 23, 1999 10:07 AM
> To:	cygwin@sourceware.cygnus.com
> Subject:	translate UNIX path to DOS path
> 
> Hi,
> 
> is there a program or script available which translates UNIX paths to DOS
> paths.
> E.g.:
> /proj is mounted on D:\rootdir\proj
> 
> When I do a 'pwd' in /proj, I get /proj, but I need D:\rootdir\proj
> 
> Thanks in advance,
> Jan.
> 
>      Jan-Friedrich Mutter <jmutter@bigfoot.de>
>          [ http://www.bigfoot.com/~jmutter ]
> 
> 
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* translate UNIX path to DOS path
@ 1999-09-23  1:13 Jan-Friedrich Mutter
  1999-09-23  1:29 ` Keith Starsmeare
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Jan-Friedrich Mutter @ 1999-09-23  1:13 UTC (permalink / raw)
  To: cygwin

Hi,

is there a program or script available which translates UNIX paths to DOS
paths.
E.g.:
/proj is mounted on D:\rootdir\proj

When I do a 'pwd' in /proj, I get /proj, but I need D:\rootdir\proj

Thanks in advance,
Jan.

     Jan-Friedrich Mutter <jmutter@bigfoot.de>
         [ http://www.bigfoot.com/~jmutter ]



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~1999-09-30 23:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-23  1:22 translate UNIX path to DOS path William Gacquer
1999-09-30 23:42 ` William Gacquer
  -- strict thread matches above, loose matches on Subject: below --
1999-09-23  1:21 William Gacquer
1999-09-30 23:42 ` William Gacquer
1999-09-23  1:21 Schaible, Joerg
1999-09-30 23:42 ` Schaible, Joerg
1999-09-23  1:13 Jan-Friedrich Mutter
1999-09-23  1:29 ` Keith Starsmeare
1999-09-30 23:42   ` Keith Starsmeare
1999-09-23  1:50 ` Glenn Spell
1999-09-30 23:42   ` Glenn Spell
1999-09-30 23:42 ` Jan-Friedrich Mutter

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).