public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* 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; 8+ 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] 8+ messages in thread
* RE: a problem with search path? (was: Multiple backslashes)
@ 2002-02-12 11:06 Stephan Mueller
  0 siblings, 0 replies; 8+ 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] 8+ 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; 8+ 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] 8+ messages in thread
* Re: Multiple backslashes
@ 2002-02-10 10:58 Randall R Schulz
  2002-02-10 10:12 ` Randall R Schulz
  0 siblings, 1 reply; 8+ messages in thread
From: Randall R Schulz @ 2002-02-10 10:58 UTC (permalink / raw)
  To: Dmitry Bely, cygwin

Dmitry,

If your XEmacs is a Windows app and not a Cygwin one, then my caveats apply 
because it is another example of a Windows process initiating a Cygwin program.

 From the Cygwin FAQ:
-==-
How does wildcarding (globbing) work?

If the DLL thinks it was invoked from a DOS style prompt, it runs a 
`globber' over the arguments provided on the command line. This means that 
if you type LS *.EXE from DOS, it will do what you might expect.

Beware: globbing uses malloc. If your application defines malloc, that will 
get used. This may do horrible things to you.
-==-

 From the Cygwin User Guide (".../cygwin-ug-net/using-cygwinenv.html"):
-==-
(no)glob[:ignorecase] - if set, command line arguments containing 
UNIX-style file wildcard characters (brackets, question mark, asterisk, 
escaped with \) are expanded into lists of files that match those 
wildcards. This is applicable only to programs running from a DOS command 
line prompt. Default is set.
-==-

So you see, you can tailor Cygwin's operations to your needs (as, of 
course, you can alter XEmacs to your heart's content).

Regardless of whether you consider this behavior a bug, it's one of the 
seams between the disparate environments (POSIX and Win32) that cannot be 
completely eradicated. I don't think you're going to get the Cygwin 
principals to agree that this is a bug. Obviously, it is a feature and 
what's more, a feature that you can control.

Lastly, don't forget that you need not disable globbing globally. You can 
always have XEmacs alter the CYGWIN environment locally so it applies only 
to those sub-processes it initiates. Note that some CYGWIN environment 
variable options apply globally and are only consulted when the cygwin1.dll 
is loaded. I don't think this is one, but I'm not sure (and I hope you 
won't think me lazy for not tracking down that detail!).

Case closed?

Randall Schulz
Mountain View, CA USA


At 10:33 2002-02-10, you wrote:
>Randall R Schulz <rrschulz@cris.com> writes:
>
> > What I said is accurate. However, in the absence of any explicit
> > mention on your part, I assumed you were issuing the commands you
> > specified from a Cygwin shell. It now appears you are entering them
> > into CMD.exe.
> >
> > If I'm not mistaken, arguments are processed differently in Cygwin
> > binaries when they are invoked from a Windows program than they are
> > when invoked by another Cygwin process. Someone who knows better (or
> > the manual...) will have to supply details, it's a mode of operation I
> > never encounter (CMD.exe offends me deeply...). I have a vague
> > recollection that there is a CYGWIN environment variable option that
> > controls or supresses or modifies this behavior somehow--I'm even less
> > sure about this than I am about the variant argument processing itself.
>
>OK, I will look into it.
>
> > I believe this is why you're experiencing difficulties. You'll have to
> > familiarize yourself with the special argument processing in the
> > Windows ->
> >
> > Cygwin transition.
> >
> > Or, you can do what I strongly suggest to everyone who'll listen:
> > DON'T USE CMD.EXE!
>
>Thank you very much for you comments, but I must repeat that in my case
>XEmacs calls  bash -c "..." _directly_ via CreateProcess() with _exactly_
>the same results. So I still tend to consider the necessity of "\\\\" as a
>bug.
>
>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] 8+ messages in thread

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-11  2:13 a problem with search path? (was: Multiple backslashes) Stephan Mueller
2002-02-11  2:45 ` Dmitry Bely
  -- strict thread matches above, loose matches on Subject: below --
2002-02-12 11:06 Stephan Mueller
2002-02-11 10:22 Stephan Mueller
2002-02-12  8:15 ` Dmitry Bely
2002-02-10 10:58 Multiple backslashes Randall R Schulz
2002-02-10 10:12 ` Randall R Schulz
2002-02-10  9:13   ` Randall R Schulz
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

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