public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Multiple backslashes
@ 2002-02-10  8:55 Dmitry Bely
  2002-02-10  9:13 ` Randall R Schulz
  0 siblings, 1 reply; 16+ messages in thread
From: Dmitry Bely @ 2002-02-10  8:55 UTC (permalink / raw)
  To: cygwin

This is probably a FAQ, but can you explain me why

bash -c "ls c:\\\\"

requires 4 backslashes? I can understand why 2 BS is needed, but 4 BS IMHO
are too much :-)

Hope to hear from you soon,
Dmitry



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: a problem with search path? (was: Multiple backslashes)
@ 2002-02-11  2:13 Stephan Mueller
  2002-02-11  2:45 ` Dmitry Bely
  0 siblings, 1 reply; 16+ messages in thread
From: Stephan Mueller @ 2002-02-11  2:13 UTC (permalink / raw)
  To: Dmitry Bely, cygwin

For me, these just worked:

From a bash shell:
[~] bash -c "d:\\\\cygwin\\\\bin\\\\ls.exe"

From cmd.exe
[D:\] bash -c "d:\\cygwin\\bin\\ls.exe"

My CYGWIN variable includes glob:ignorecase

stephan();


-----Original Message-----
From: Dmitry Bely [mailto:dbely@mail.ru] 
Sent: Monday, February 11, 2002 1:31 AM
To: cygwin@cygwin.com
Subject: a problem with search path? (was: Multiple backslashes)


Randall R Schulz <rrschulz@cris.com> writes:

> I'm trying to help you, but you seem insistent on just declaring
> Cygwin buggy. It is not and it is possible for you to resolve the
> problem. I gave you all the information you need to do so.
> 
> One last time, I'll answer your points...

Randall, of course it's up to you whether to answer or not. Nonetheless,
thank you for your comments. For everyone else, I don't claim that
cygwin
is buggy (although it might be the case). I just trying to understand
what's going on and how to solve my very problems. Randall's advice to
add
CYGWIN=noglob _partially_ solves them (yes, really, it makes 2 BS
sufficient then 'bash -c "ls c:\\"' is called via syscall
CreateProcess()). But:

How to write the following command with _backslashes_ to make it work?
Suppose we launch it from bash:

bash-2.05$ bash -c "ls c:\\\\cygwin\\\\bin\\\\ls.exe"
c:\cygwin\bin\ls.exe
bash-2.05$ bash -c "c:\\\\cygwin\\\\bin\\\\ls.exe"
bash: c:\cygwin\bin\ls.exe: command not found
bash-2.05$

CYGWIN=noglob does _not_ help.

How many backslahes should I put there?
But please check that it _really_ works before answering.

Hope to hear from you soon,
Dmitry



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: a problem with search path? (was: Multiple backslashes)
@ 2002-02-11 10:22 Stephan Mueller
  2002-02-12  8:15 ` Dmitry Bely
  0 siblings, 1 reply; 16+ messages in thread
From: Stephan Mueller @ 2002-02-11 10:22 UTC (permalink / raw)
  To: Dmitry Bely; +Cc: cygwin

Latest everything.  bash 2.05a.0(2)  Cygwin DLL v 1.3.9-1.
stephan();


-----Original Message-----
From: Dmitry Bely [mailto:dbely@mail.ru] 
Sent: Monday, February 11, 2002 2:38 AM
To: Stephan Mueller
Cc: cygwin@cygwin.com
Subject: Re: a problem with search path? (was: Multiple backslashes)


"Stephan Mueller" <smueller@microsoft.com> writes:

> >From a bash shell:
> [~] bash -c "d:\\\\cygwin\\\\bin\\\\ls.exe"
> 
> >From cmd.exe
> [D:\] bash -c "d:\\cygwin\\bin\\ls.exe"
> 
> My CYGWIN variable includes glob:ignorecase

But it does not work for me even with your settings :-( What is the
version of cygwin and bash that you are using?

Hope to hear from you soon,
Dmitry



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: a problem with search path? (was: Multiple backslashes)
@ 2002-02-12 11:06 Stephan Mueller
  0 siblings, 0 replies; 16+ messages in thread
From: Stephan Mueller @ 2002-02-12 11:06 UTC (permalink / raw)
  To: Dmitry Bely; +Cc: cygwin

I'm using Windows XP.
stephan();

-----Original Message-----
From: Dmitry Bely [mailto:dbely@mail.ru] 
Sent: Tuesday, February 12, 2002 8:10 AM
To: Stephan Mueller
Cc: cygwin@cygwin.com
Subject: Re: a problem with search path? (was: Multiple backslashes)


"Stephan Mueller" <smueller@microsoft.com> writes:

> Latest everything.  bash 2.05a.0(2)  Cygwin DLL v 1.3.9-1. stephan();

Just upgraded my installaton - still no success. What OS are you using?
I currenly have Windows 2000 Workstation SP2 (build 2195)

> > >From a bash shell:
> > [~] bash -c "d:\\\\cygwin\\\\bin\\\\ls.exe"
> > 
> > >From cmd.exe
> > [D:\] bash -c "d:\\cygwin\\bin\\ls.exe"
> > 
> > My CYGWIN variable includes glob:ignorecase

Hope to hear from you soon,
Dmitry



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

end of thread, other threads:[~2002-02-12 19:06 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-10  8:55 Multiple backslashes Dmitry Bely
2002-02-10  9:13 ` Randall R Schulz
2002-02-10  9:55   ` Dmitry Bely
2002-02-10 10:12     ` Randall R Schulz
2002-02-10 10:35       ` Dmitry Bely
2002-02-10 10:58         ` Randall R Schulz
2002-02-10 11:55           ` Dmitry Bely
2002-02-10 14:50             ` Randall R Schulz
2002-02-11  1:35               ` a problem with search path? (was: Multiple backslashes) Dmitry Bely
2002-02-11  8:57                 ` Randall R Schulz
2002-02-12  8:06                   ` Dmitry Bely
2002-02-11  2:13 Stephan Mueller
2002-02-11  2:45 ` Dmitry Bely
2002-02-11 10:22 Stephan Mueller
2002-02-12  8:15 ` Dmitry Bely
2002-02-12 11:06 Stephan Mueller

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