public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: DOS filename vs POSIX filename
@ 2000-08-27  4:33 Winbox X
  0 siblings, 0 replies; 5+ messages in thread
From: Winbox X @ 2000-08-27  4:33 UTC (permalink / raw)
  To: Larry Hall (RFK Partners, Inc); +Cc: Winbox X, cygwin@sourceware.cygnus.com

unix_command c:\\usr\\src\\file.c work for bash, but I could
not include something like that in PATH because : is used to
separate different paths. Also in sh/make script, I have to use \ to
protect \. Once I have to use 8 \ in a row. :)
DJ in his email provided a net solution to this problem, as far
as your win32 applications accept POSIX path. Luckily this is
true for me.
Thanks,

-Mike


---- "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com> wrote:
> At 02:50 PM 8/24/2000, Winbox X wrote:
> 
> >Is there method to name a path so that both cygwin commands and my
> >old legacy win32 commands both understand? Right now I have to use
> >different path names for the same file, some like
> >unix_command /usr/src/file.c for bash
> >dos_command c:\\usr\\src\\file.c for dos
> >
> >thanks,
> >
> >-Mike
> >
> 
> 
> 
> cypath will convert between forms but why doesn't 
> "unix_command c:\\usr\\src\\file.c" work for you in bash?
> 
> 
> 
> Larry Hall                              lhall@rfk.com
> RFK Partners, Inc.                      http://www.rfk.com
> 118 Washington Street                   (508) 893-9779 - RFK Office
> Holliston, MA 01746                     (508) 893-9889 - FAX
> 
> 
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> 
> 

__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com



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

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: DOS filename vs POSIX filename
@ 2000-08-24 12:44 Noel L Yap
  0 siblings, 0 replies; 5+ messages in thread
From: Noel L Yap @ 2000-08-24 12:44 UTC (permalink / raw)
  To: winbox; +Cc: Cygwin

You should be able to do something like:
dos_command `cygpath -w -p /usr/src/file.c`

assuming, of course, that you're in a non-DOS shell.  I know it's pretty messy
and it's a lot of typing, but if you can find a better way, please let me know
'cos I'd also like to get a nice transparent way of doing this so my makefiles
are more portable.

Noel




winbox@onebox.com on 2000.08.24 14:50:48

To:   cygwin@sourceware.cygnus.com
cc:   (bcc: Noel L Yap)
Subject:  DOS filename vs POSIX filename





Is there method to name a path so that both cygwin commands and my
old legacy win32 commands both understand? Right now I have to use
different path names for the same file, some like
unix_command /usr/src/file.c for bash
dos_command c:\\usr\\src\\file.c for dos

thanks,

-Mike


__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com


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






This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan & Co. Incorporated, its
subsidiaries and affiliates.


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

^ permalink raw reply	[flat|nested] 5+ messages in thread
* DOS filename vs POSIX filename
@ 2000-08-24 11:51 Winbox X
  2000-08-24 11:58 ` Larry Hall (RFK Partners, Inc)
  2000-08-24 12:04 ` DJ Delorie
  0 siblings, 2 replies; 5+ messages in thread
From: Winbox X @ 2000-08-24 11:51 UTC (permalink / raw)
  To: cygwin

Is there method to name a path so that both cygwin commands and my
old legacy win32 commands both understand? Right now I have to use
different path names for the same file, some like
unix_command /usr/src/file.c for bash
dos_command c:\\usr\\src\\file.c for dos

thanks,

-Mike


__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com


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

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

end of thread, other threads:[~2000-08-27  4:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-27  4:33 DOS filename vs POSIX filename Winbox X
  -- strict thread matches above, loose matches on Subject: below --
2000-08-24 12:44 Noel L Yap
2000-08-24 11:51 Winbox X
2000-08-24 11:58 ` Larry Hall (RFK Partners, Inc)
2000-08-24 12:04 ` DJ Delorie

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