Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-23 Thread Fergus

That is great. Thanks for your patient.
I have another question. Can the first field of fstab use relative
path. I expect to make the cygwin portable, that is, i need to move it
to somewhere esle without changing the fstab every time.


If you are using Cygwin in portable mode (presumably on a stick or similar 
mobile device)
there is a way to achieve what you want - but it is fiddly.
I am guessing that Cygwin is mounted at the root of your device ie /bin, /etc, 
/usr, and
all the rest are all located under d: or f: or g: or p: or whatever the device 
might turn out
to be labelled as you move from one host machine to another host machine, and 
that you do not
want the grief of having to identify the variant drivename every time and 
manually re-configure
the line in /etc/fstab as

	f:/cygwin_1.7/usr/bin /usr/bin ntfs binary 0 0 
or

h:/cygwin_1.7/usr/bin /usr/bin ntfs binary 0 0  

accordingly, as might be necessary.

The way I do it (if_there_is_a_better_way_I_would_like_to_know_it) is to start 
portable Cygwin with
a .cmd file (called go.cmd or something) that resides at the root of the device 
and starts with the
lines

@set DOS_CMD=%0
@set CWD=%CD%
@set DN=%CWD:~0,2%
@if (%DOS_CMD:~1,1%)==(:) set DN=%DOS_CMD:~0,2%
@if (%DOS_CMD:~2,1%)==(:) set DN=%DOS_CMD:~1,2%

All this is designed so that the variable DN (standing for drivename) is 
exactly D: or F: or G:
or P: as appropriate, and the reason for the five lines is so that this 
identification is
correctly made however you start Cygwin, whether by

(i)   typing go.cmd at the prompt in a Command Prompt window located at F:
(ii)  typing f:\go.cmd at the prompt in a Command Prompt window located 
somewhere else
(iii) double clicking the go.cmd icon in Explorer
(iv)  using Start - Run - f:\go.cmd

Yeah, I know, all that effort just so that DN accurately identifies the 
drivename, but it all has to
be done BEFORE Cygwin is triggered. You can then go on, still in go.cmd, to say 
something like

@%DN%\bin\echo %DN%/cygwin_1.7/usr/bin /usr/bin ntfs binary 0 0   
%DN%\etc\fstab
... any other requirements ...   
%DN%\etc\fstab

and then, FINALLY, start Cygwin with (well, in my case: your requirement might 
differ)

@set SHELL=/bin/bash
@set HOME=/home/user
@%DN%\bin\rxvt

Awfully sorry for long post. A fiddly way to get something rather simple, but 
it works in all of
W98, XP, Vista and 7. And there are lots of other reasons (if you are running portable Cygwin off 
one device on any number of potential host machines) why you might want to use DN without having
to discover it (or, in fact, even know it) each time.  


Fergus



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-23 Thread Christopher Faylor
On Wed, Sep 23, 2009 at 12:37:58PM +0800, ??? wrote:
 The entry that you used in your previous mail was not correctly formatted.

 It should be something like:

 f:/cygwin_1.7/usr/bin /usr/bin ntfs binary 0 0

That is great. Thanks for your patient.
I have another question. Can the first field of fstab use relative
path.

That's one of those Why not just try it questions but the answer is
no.  How could that possibly work?

I expect to make the cygwin portable, that is, i need to move it
to somewhere esle without changing the fstab every time.

In that case, you should just rely on the fact that Cygwin sets /
relative to where cygwin1.dll lives and not mess with fstab at all.

cgf

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-23 Thread ︶ㄣ無名氏
 That's one of those Why not just try it questions but the answer is
 no.  How could that possibly work?

Thanks. I have tried it.
I think  it is possible. The relative path can be convented the
absolute path according to where cygwin1.dll lives.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread tianlijian
how to let cygwin does not mount /bin /usr/bin automaticlly?

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread Dave Korn
tianlijian wrote:
 how to let cygwin does not mount /bin /usr/bin automaticlly?

  Lots of things won't work without that mount.  I advise not to tamper with it.

cheers,
  DaveK


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread tianlijian
I use a older version of 1.7, which do not mount `/bin', `/usr/bin'
automatically. It works well.

On Tue, Sep 22, 2009 at 11:04 PM, Dave Korn
dave.korn.cyg...@googlemail.com wrote:
 tianlijian wrote:
 how to let cygwin does not mount /bin /usr/bin automaticlly?

  Lots of things won't work without that mount.  I advise not to tamper with 
 it.

    cheers,
      DaveK


 --
 Problem reports:       http://cygwin.com/problems.html
 FAQ:                   http://cygwin.com/faq/
 Documentation:         http://cygwin.com/docs.html
 Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread Larry Hall (Cygwin)

On 09/22/2009 11:01 AM, tianlijian wrote:

I use a older version of 1.7, which do not mount `/bin', `/usr/bin'
automatically. It works well.


Why do you care what Cygwin requires here?  Are you having a
problem?

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread Dave Korn
tianlijian wrote:
 I use a older version of 1.7, which do not mount `/bin', `/usr/bin'
 automatically. 

  Something must have gone wrong with creating fstab during the upgrade I
guess, it should have been done.

 It works well.

  What happens when a shell script begins #!/bin/sh?  Alternatively, what
happens when a shell script begins #!/usr/bin/sh?  I would expect one of
those two to fail.

cheers,
  DaveK

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread ︶ㄣ無名氏
I want to put thd command according to filesytem hierarchy standard,
that is putting the cmd such as sh in /bin, and env in /usr/bin/.

On Tue, Sep 22, 2009 at 23:06, Larry Hall (Cygwin)
reply-to-list-only...@cygwin.com wrote:

 On 09/22/2009 11:01 AM, tianlijian wrote:

 I use a older version of 1.7, which do not mount `/bin', `/usr/bin'
 automatically. It works well.

 Why do you care what Cygwin requires here?  Are you having a
 problem?

 --
 Larry Hall                              http://www.rfk.com
 RFK Partners, Inc.                      (508) 893-9779 - RFK Office
 216 Dalton Rd.                          (508) 893-9889 - FAX
 Holliston, MA 01746

 _

 A: Yes.
  Q: Are you sure?
  A: Because it reverses the logical flow of conversation.
  Q: Why is top posting annoying in email?

 --
 Problem reports:       http://cygwin.com/problems.html
 FAQ:                   http://cygwin.com/faq/
 Documentation:         http://cygwin.com/docs.html
 Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread Larry Hall (Cygwin)

On 09/22/2009 11:30 AM, ︶ㄣ無名氏 wrote:

On Tue, Sep 22, 2009 at 23:06, Larry Hall (Cygwin) reply-to-list-only-lh...  
wrote:

  ^
http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.



On 09/22/2009 11:01 AM, tianlijian wrote:


I use a older version of 1.7, which do not mount `/bin', `/usr/bin'
automatically. It works well.


Why do you care what Cygwin requires here?  Are you having a
problem?

I want to put thd command according to filesytem hierarchy standard,
that is putting the cmd such as sh in /bin, and env in /usr/bin/.


Ah, OK.  I understand your goal.  However, with Cygwin, there is really
no difference in the two directories, which is why one is mounted to
the other.  While you are free to change this, it will be a non-standard
configuration and any problem you encounter as a result won't be
supported by this list.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread ︶ㄣ無名氏
Thanks. I want to know how to change this configuration.

I do as follows:

bash-3.2$ /bin/umount /usr/bin
umount: /usr/bin: Operation not permitted

but i does not work. Any idea?

On Tue, Sep 22, 2009 at 23:40, Larry Hall (Cygwin)
reply-to-list-only...@cygwin.com wrote:
 On 09/22/2009 11:30 AM, ︶ㄣ無名氏 wrote:

 On Tue, Sep 22, 2009 at 23:06, Larry Hall (Cygwin)
 reply-to-list-only-lh...  wrote:

                                                  ^
 http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.


 On 09/22/2009 11:01 AM, tianlijian wrote:

 I use a older version of 1.7, which do not mount `/bin', `/usr/bin'
 automatically. It works well.

 Why do you care what Cygwin requires here?  Are you having a
 problem?

 I want to put thd command according to filesytem hierarchy standard,
 that is putting the cmd such as sh in /bin, and env in /usr/bin/.

 Ah, OK.  I understand your goal.  However, with Cygwin, there is really
 no difference in the two directories, which is why one is mounted to
 the other.  While you are free to change this, it will be a non-standard
 configuration and any problem you encounter as a result won't be
 supported by this list.

 --
 Larry Hall                              http://www.rfk.com
 RFK Partners, Inc.                      (508) 893-9779 - RFK Office
 216 Dalton Rd.                          (508) 893-9889 - FAX
 Holliston, MA 01746

 _

 A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

 --
 Problem reports:       http://cygwin.com/problems.html
 FAQ:                   http://cygwin.com/faq/
 Documentation:         http://cygwin.com/docs.html
 Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread Andy Koppe
2009/9/22 ︶ㄣ無名氏:
 Thanks. I want to know how to change this configuration.

 I do as follows:

 bash-3.2$ /bin/umount /usr/bin
 umount: /usr/bin: Operation not permitted

 but i does not work. Any idea?

/etc/fstab

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread Larry Hall (Cygwin)
Again, I'd ask that you http://cygwin.com/acronyms/#PCYMTNQREAIYR.  I 
don't need the

spam and others that respond to you also are likely to not want to see more.

On 09/22/2009 12:11 PM, ︶ㄣ無名氏 wrote:

Thanks. I want to know how to change this configuration.

I do as follows:

bash-3.2$ /bin/umount /usr/bin
umount: /usr/bin: Operation not permitted

but i does not work. Any idea?


You won't be able to do this without changing some code internally.  Cygwin 1.7
tries very hard to keep your installation consistent and valid.  If you want 
something
different, you'll need to undo the code that works to accomplish this. 
Off-hand, I don't

recall where that code is.  But since you can also look at the code (and recent
changelogs :-) ), I expect you can locate it at least as quickly as I could.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread Christopher Faylor
On Wed, Sep 23, 2009 at 12:11:23AM +0800, ??? wrote:
Thanks. I want to know how to change this configuration.

I do as follows:

bash-3.2$ /bin/umount /usr/bin
umount: /usr/bin: Operation not permitted

but i does not work. Any idea?

If you want /usr/bin to point someplace nonstandard, try using the -f -o
override options to mount.  Note that, in Cygwin 1.7 mount is not
permanent.  You'll have to change /etc/fstab if you want permanent
mounts.

I can't think of any way to keep /usr/bin permanently unmounted.

cgf

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread ︶ㄣ無名氏
I have try the command:
$ mount -f -o binary,user 'f:\cygwin_1.7\usr\bin\' /usr/bin
mount: /usr/bin: Operation not permitted

The -f option does not work well.

I have alse add this line to fstab:
ntfs f:\cygwin_1.7\usr\bin\ /usr/bin binary,user 0 0
It fails, too.

On Wed, Sep 23, 2009 at 00:34, Christopher Faylor . wrote:
 On Wed, Sep 23, 2009 at 12:11:23AM +0800, ??? wrote:
Thanks. I want to know how to change this configuration.

I do as follows:

bash-3.2$ /bin/umount /usr/bin
umount: /usr/bin: Operation not permitted

but i does not work. Any idea?

 If you want /usr/bin to point someplace nonstandard, try using the -f -o
 override options to mount.  Note that, in Cygwin 1.7 mount is not
 permanent.  You'll have to change /etc/fstab if you want permanent
 mounts.

 I can't think of any way to keep /usr/bin permanently unmounted.

 cgf

 --
 Problem reports:       http://cygwin.com/problems.html
 FAQ:                   http://cygwin.com/faq/
 Documentation:         http://cygwin.com/docs.html
 Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread Christopher Faylor
On Wed, Sep 23, 2009 at 11:09:06AM +0800, ??? wrote:
I have try the command:
$ mount -f -o binary,user 'f:\cygwin_1.7\usr\bin\' /usr/bin
mount: /usr/bin: Operation not permitted

The -f option does not work well.

You really do need the -o override option that I mentioned.

See: http://cygwin.com/1.7/cygwin-ug-net/using-utils.html#mount

cgf

On Wed, Sep 23, 2009 at 00:34, Christopher Faylor . wrote:
If you want /usr/bin to point someplace nonstandard, try using the -f
-o override options to mount.  ??Note that, in Cygwin 1.7 mount is not
permanent.  You'll have to change /etc/fstab if you want permanent
mounts.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread ︶ㄣ無名氏
$ mount -f -o override 'f:\cygwin_1.7\usr\bin\' /usr/bin
mount: /usr/bin: Operation not permitted


I have used the `override' option, but the error occurs again.


On Wed, Sep 23, 2009 at 11:21, Christopher Faylor
cgf-use-the-mailinglist-ple...@cygwin.com wrote:
 On Wed, Sep 23, 2009 at 11:09:06AM +0800, ??? wrote:
I have try the command:
$ mount -f -o binary,user 'f:\cygwin_1.7\usr\bin\' /usr/bin
mount: /usr/bin: Operation not permitted

The -f option does not work well.

 You really do need the -o override option that I mentioned.

 See: http://cygwin.com/1.7/cygwin-ug-net/using-utils.html#mount

 cgf

On Wed, Sep 23, 2009 at 00:34, Christopher Faylor . wrote:
If you want /usr/bin to point someplace nonstandard, try using the -f
-o override options to mount.  ??Note that, in Cygwin 1.7 mount is not
permanent.  You'll have to change /etc/fstab if you want permanent
mounts.

 --
 Problem reports:       http://cygwin.com/problems.html
 FAQ:                   http://cygwin.com/faq/
 Documentation:         http://cygwin.com/docs.html
 Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread Christopher Faylor
On Wed, Sep 23, 2009 at 11:36:13AM +0800, ??? wrote:
$ mount -f -o override 'f:\cygwin_1.7\usr\bin\' /usr/bin
mount: /usr/bin: Operation not permitted


I have used the `override' option, but the error occurs again.

Sorry for the misinformation.  You need to add an entry for /usr/bin
to /etc/fstab if you want to override it.  And, on checking the code
that I wrote and didn't remember, you don't have to use the override
option.

The entry that you used in your previous mail was not correctly formatted.

It should be something like:

f:/cygwin_1.7/usr/bin /usr/bin ntfs binary 0 0

cgf

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread ︶ㄣ無名氏
 The entry that you used in your previous mail was not correctly formatted.

 It should be something like:

 f:/cygwin_1.7/usr/bin /usr/bin ntfs binary 0 0

That is great. Thanks for your patient.
I have another question. Can the first field of fstab use relative
path. I expect to make the cygwin portable, that is, i need to move it
to somewhere esle without changing the fstab every time.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



/bin /usr/bin

2009-02-07 Thread Lee D. Rothstein

Peter Rosin wrote:

 Den 2009-02-07 00:37 skrev Lee D.Rothstein:

  
   First, PATH must include the Windows path of the /bin, where 
typically
both mintty.exe and cygwin1.dll' will be found. Remember, this 
is a


 Here, I think I have the path right, since, the Windows equivalent 
of '/bin'

 is 'c:\Cygwin\bin', which means I don't understand the following comment
 at all:

 My (minor) point was that from the mintty point of view, the fact
 that /bin and /usr/bin are equivalent is a coincidence - it's a
 Cygwin quirk. Since mintty installs in /usr/bin,

Not on my Vista 64b System! Everything is in /bin, (c:\_r\bin) NOTHING is
in /usr/bin. (c:\_r\usr\bin). I thought, I had remembered that, in prior
systems almost the reverse was true, but I checked before I wrote the last
reply (and checked again, just now).

As everyone has implied, all items in /bin, are accessible through /usr/bin.

Is my system different? Why? Pilot error?


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: /bin /usr/bin

2009-02-07 Thread Larry Hall (Cygwin)

Lee D. Rothstein wrote:

Peter Rosin wrote:

  Den 2009-02-07 00:37 skrev Lee D.Rothstein:

   
First, PATH must include the Windows path of the /bin, where 
typically
 both mintty.exe and cygwin1.dll' will be found. Remember, this 
is a


  Here, I think I have the path right, since, the Windows equivalent 
of '/bin'
  is 'c:\Cygwin\bin', which means I don't understand the following 
comment

  at all:

  My (minor) point was that from the mintty point of view, the fact
  that /bin and /usr/bin are equivalent is a coincidence - it's a
  Cygwin quirk. Since mintty installs in /usr/bin,

Not on my Vista 64b System! Everything is in /bin, (c:\_r\bin) NOTHING is
in /usr/bin. (c:\_r\usr\bin). I thought, I had remembered that, in prior
systems almost the reverse was true, but I checked before I wrote the last
reply (and checked again, just now).

As everyone has implied, all items in /bin, are accessible through 
/usr/bin.


Is my system different? Why? Pilot error?


No.  In a default installation, there will be a 'C:\usr\bin' and a
'C:\usr\lib' that are empty as far as Windows is concerned.  'C:\bin'
and 'C:\lib' are mounted to these directories, respectively, so that
they are equivalent in the Cygwin environment.  See the output of
'mount' for further clarification.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-13 Thread Bas van Gompel
Op Mon, 12 Jul 2004 11:32:30 +0100 schreef Max Bowsher
in [EMAIL PROTECTED]:
:  Christopher Faylor wrote:
[...]
:  The FHS dictates no subdirectories in /usr/bin and I think it's a good
:  rule.  Program specific subdirectories belong in /usr/lib.
:
:  ...
:
:  Why didn't rpm just put its binaries in /usr/bin/rpm?  Why didn't qt put
:  them in /usr/bin/qt?  Regardless of the reason, they put their packages
:  in /usr/lib.  So should you.
:
:  OK, I'll use /usr/lib.
:
:  Though the FHS actually permits subdirs of /usr/bin, even defining the
:  meaning of one subdir, /usr/bin/mh

...as an option, and it may also be a symlink (The following
directories, or symbolic links to directories, must be in /usr/bin,
if the corresponding subsystem is installed)

:  http://www.pathname.com/fhs/pub/fhs-2.3.html#USRBINMOSTUSERCOMMANDS

It /does/ require: /usr/bin/X11 must be a symlink to /usr/X11R6/bin if
the latter exists. The latter *does* exist. The former _does not_.
[Heads up X11-maintainer? (Same is true for /usr/lib/X11 -
/usr/X11R6/lib/X11 and /usr/include/X11 - /usr/X11R6/include/X11
url:http://www.pathname.com/fhs/pub/fhs-2.3.html#USRX11R6XWINDOWSYSTEMVERSION11REL
)]

However, in http://www.pathname.com/fhs/pub/fhs-2.3.html#REQUIREMENTS2
it clearly states: There must be no subdirectories in /bin.

It does not forbid symlinks to dirs AFAICS...

L8r,

Buzz.
-- 
  ) |  | ---/ ---/  Yes, this | This message consists of true | I do not
--  |  |   //   really is |   and false bits entirely.| mail for
  ) |  |  //a 72 by 4 +---+ any1 but
--  \--| /--- /---  .sigfile. |   |perl -pe s.u(z)\1.as.| me. 4^re


Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-12 Thread Max Bowsher
Christopher Faylor wrote:
 On Mon, Jul 12, 2004 at 12:02:59AM +0100, Max Bowsher wrote:
 My reluctance to do that is because the standard place to look for DLLs
and
 programs on Cygwin is /usr/bin. I don't understand why, because they need
to
 be in a subdirectory, they should transfer to the less obvious /usr/lib
 tree.

 The FHS dictates no subdirectories in /usr/bin and I think it's a good
 rule.  Program specific subdirectories belong in /usr/lib.

...

 Why didn't rpm just put its binaries in /usr/bin/rpm?  Why didn't qt put
 them in /usr/bin/qt?  Regardless of the reason, they put their packages
 in /usr/lib.  So should you.

OK, I'll use /usr/lib.

Though the FHS actually permits subdirs of /usr/bin, even defining the
meaning of one subdir, /usr/bin/mh

http://www.pathname.com/fhs/pub/fhs-2.3.html#USRBINMOSTUSERCOMMANDS

Max.



Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-12 Thread Christopher Faylor
On Mon, Jul 12, 2004 at 11:32:30AM +0100, Max Bowsher wrote:
Christopher Faylor wrote:
 On Mon, Jul 12, 2004 at 12:02:59AM +0100, Max Bowsher wrote:
 My reluctance to do that is because the standard place to look for DLLs
and
 programs on Cygwin is /usr/bin. I don't understand why, because they need
to
 be in a subdirectory, they should transfer to the less obvious /usr/lib
 tree.

 The FHS dictates no subdirectories in /usr/bin and I think it's a good
 rule.  Program specific subdirectories belong in /usr/lib.

...

 Why didn't rpm just put its binaries in /usr/bin/rpm?  Why didn't qt put
 them in /usr/bin/qt?  Regardless of the reason, they put their packages
 in /usr/lib.  So should you.

OK, I'll use /usr/lib.

Though the FHS actually permits subdirs of /usr/bin, even defining the
meaning of one subdir, /usr/bin/mh

http://www.pathname.com/fhs/pub/fhs-2.3.html#USRBINMOSTUSERCOMMANDS

Hmm.  I couldn't get through to pathname.com last night and relied on a
secondary reference which stated in no uncertain terms that subdirectories
should not be created.  You just can't trust the internet...

cgf


Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-11 Thread Christopher Faylor
On Sun, Jul 11, 2004 at 12:18:23AM +0100, Max Bowsher wrote:
Christopher Faylor wrote:
 On Tue, Jul 06, 2004 at 02:08:55PM +0100, Max Bowsher wrote:

 I propose to relocate all the above into a directory /usr/bin/subversion,

Sorry, no.  /usr/bin is a flat structure.  It does not contain
subdirectories.

What is the reason for this?  I feel this specific case would be a
sensible exception to the rule.

Did you read the rest of this thread?  Just mimic how other packages
on linux do it.  There is no need to invent a new way of doing this
when there are already standard ways in existence.

If you are using symlinks anyway, there is no reason why you need
to create a directory in /usr/bin.

cgf


Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-10 Thread Max Bowsher
Christopher Faylor wrote:
 On Tue, Jul 06, 2004 at 02:08:55PM +0100, Max Bowsher wrote:

 I propose to relocate all the above into a directory /usr/bin/subversion,

 Sorry, no.  /usr/bin is a flat structure.  It does not contain
subdirectories.

What is the reason for this? I feel this specific case would be a sensible
exception to the rule.

Max.



RE: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-10 Thread Robert McNulty Junior
In order to be more Unix-like, /usr/bin does not have subdirectories.
Look at the structure of Linux. I'm going to remove Windows Services for
Unix and just use both Cygwin and Visual studio.
Try and look into /usr/bin on Linux and see what Chris is talking about.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Max Bowsher
Sent: Saturday, July 10, 2004 6:18 PM
To: [EMAIL PROTECTED]
Subject: Re: [RFC] Change to subversion package: Move /usr/bin/* -
/usr/bin/subversion/* and add symlinks in /usr/bin

Christopher Faylor wrote:
 On Tue, Jul 06, 2004 at 02:08:55PM +0100, Max Bowsher wrote:

 I propose to relocate all the above into a directory /usr/bin/subversion,

 Sorry, no.  /usr/bin is a flat structure.  It does not contain
subdirectories.

What is the reason for this? I feel this specific case would be a sensible
exception to the rule.

Max.






Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-10 Thread Max Bowsher
Robert McNulty Junior wrote:
 In order to be more Unix-like, /usr/bin does not have subdirectories.
 Look at the structure of Linux. I'm going to remove Windows Services for
 Unix and just use both Cygwin and Visual studio.
 Try and look into /usr/bin on Linux and see what Chris is talking about.

I've not seen any statements that unix *cannot* have subdirs in /usr/bin.
It generally doesn't, because to do so would defeat the mechanism of the
PATH envvar.

So, that really doesn't suggest that we shouldn't create subdirectories in
/usr/bin where appropriate.

I submit that it is appropriate in this case, because:

* The problem I'm trying to solve requires that the cygsvn*.dll files not be
in the same directory as python.exe

* It is an established Cygwin standard that DLLs go in /usr/bin

Therefore, a subdir in /usr/bin seems the best compromise of the above 2
points.

Max.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On
 Behalf Of Max Bowsher
 Sent: Saturday, July 10, 2004 6:18 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [RFC] Change to subversion package: Move /usr/bin/* -
 /usr/bin/subversion/* and add symlinks in /usr/bin

 Christopher Faylor wrote:
 On Tue, Jul 06, 2004 at 02:08:55PM +0100, Max Bowsher wrote:

 I propose to relocate all the above into a directory
/usr/bin/subversion,

 Sorry, no.  /usr/bin is a flat structure.  It does not contain
 subdirectories.

 What is the reason for this? I feel this specific case would be a sensible
 exception to the rule.

 Max.



Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-07 Thread Max Bowsher
Igor Pechtchanski wrote:
 You can then compile the subversion executables to look for DLLs in the
 above directory.

Um, how? To the best of my knowledge the Windows dynamic loader does not have this 
level of sophistication.

Max.



Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-07 Thread Corinna Vinschen
On Jul  7 14:42, Max Bowsher wrote:
 Igor Pechtchanski wrote:
  You can then compile the subversion executables to look for DLLs in the
  above directory.
 
 Um, how? To the best of my knowledge the Windows dynamic loader does not have this 
 level of sophistication.

That would probably require a wrapper script for each executable.
I don't think it's worth that.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.


Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-07 Thread Igor Pechtchanski
On Wed, 7 Jul 2004, Max Bowsher wrote:

 Igor Pechtchanski wrote:
  You can then compile the subversion executables to look for DLLs in the
  above directory.

 Um, how? To the best of my knowledge the Windows dynamic loader does not
 have this level of sophistication.

 Max.

Well, by default it doesn't.  However, using LoadLibraryEx and the
LOAD_WITH_ALTERED_SEARCH_PATH flag, you can actually specify an exact path
to the module.  It might be more pain than it's worth, though, and I don't
know of easier ways.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton


Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-07 Thread Max Bowsher
Igor Pechtchanski wrote:
 On Wed, 7 Jul 2004, Max Bowsher wrote:
 
 Igor Pechtchanski wrote:
 You can then compile the subversion executables to look for DLLs in the
 above directory.
 
 Um, how? To the best of my knowledge the Windows dynamic loader does not
 have this level of sophistication.
 
 Max.
 
 Well, by default it doesn't.  However, using LoadLibraryEx and the
 LOAD_WITH_ALTERED_SEARCH_PATH flag, you can actually specify an exact path
 to the module.  It might be more pain than it's worth, though, and I don't
 know of easier ways.

Not so helpful if you aren't even using LoadLibrary.

Max.



[RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-06 Thread Max Bowsher
$ zcat /etc/setup/subversion.lst.gz
...
usr/bin/cygsvn_client-1-0.dll
usr/bin/cygsvn_delta-1-0.dll
usr/bin/cygsvn_diff-1-0.dll
usr/bin/cygsvn_fs-1-0.dll
usr/bin/cygsvn_ra-1-0.dll
usr/bin/cygsvn_ra_dav-1-0.dll
usr/bin/cygsvn_ra_local-1-0.dll
usr/bin/cygsvn_ra_svn-1-0.dll
usr/bin/cygsvn_repos-1-0.dll
usr/bin/cygsvn_subr-1-0.dll
usr/bin/cygsvn_wc-1-0.dll
usr/bin/svn.exe
usr/bin/svnadmin.exe
usr/bin/svndumpfilter.exe
usr/bin/svnlook.exe
usr/bin/svnserve.exe
usr/bin/svnversion.exe
...

I propose to relocate all the above into a directory /usr/bin/subversion,
and add symlinks to the executables in /usr/bin .

The reason is:

Suppose I wish to use some python bindings, built against a different version of the 
subversion libraries (installed in /usr/local),
with the Cygwin system python in /usr/bin.

*Whatever* I set PATH to, the subversion libraries from /usr/bin will be the ones 
loaded, because they are in the same directory as
python.exe .

By hiding these libraries in a subdirectory, and revealing the executables via 
symlinks, I ensure that Python bindings will load
subversion libraries according to PATH, allowing users the flexibility to install a 
different subversion version.

I hereby request comments/review of this packaging change proposal.

Max.




Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-06 Thread Christopher Faylor
On Tue, Jul 06, 2004 at 02:08:55PM +0100, Max Bowsher wrote:
$ zcat /etc/setup/subversion.lst.gz
...
usr/bin/cygsvn_client-1-0.dll
usr/bin/cygsvn_delta-1-0.dll
usr/bin/cygsvn_diff-1-0.dll
usr/bin/cygsvn_fs-1-0.dll
usr/bin/cygsvn_ra-1-0.dll
usr/bin/cygsvn_ra_dav-1-0.dll
usr/bin/cygsvn_ra_local-1-0.dll
usr/bin/cygsvn_ra_svn-1-0.dll
usr/bin/cygsvn_repos-1-0.dll
usr/bin/cygsvn_subr-1-0.dll
usr/bin/cygsvn_wc-1-0.dll
usr/bin/svn.exe
usr/bin/svnadmin.exe
usr/bin/svndumpfilter.exe
usr/bin/svnlook.exe
usr/bin/svnserve.exe
usr/bin/svnversion.exe
...

I propose to relocate all the above into a directory /usr/bin/subversion,

Sorry, no.  /usr/bin is a flat structure.  It does not contain subdirectories.

cgf


Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-06 Thread Dr. Volker Zell
 Christopher Faylor writes:

 Sorry, no.  /usr/bin is a flat structure.  It does not contain subdirectories.

There are

glui-examples
ncurses-test-dll

 cgf

Ciao
  Volker



Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-06 Thread Igor Pechtchanski
On Tue, 6 Jul 2004, Max Bowsher wrote:

 $ zcat /etc/setup/subversion.lst.gz
 ...
 usr/bin/cygsvn_client-1-0.dll
 usr/bin/cygsvn_delta-1-0.dll
 usr/bin/cygsvn_diff-1-0.dll
 usr/bin/cygsvn_fs-1-0.dll
 usr/bin/cygsvn_ra-1-0.dll
 usr/bin/cygsvn_ra_dav-1-0.dll
 usr/bin/cygsvn_ra_local-1-0.dll
 usr/bin/cygsvn_ra_svn-1-0.dll
 usr/bin/cygsvn_repos-1-0.dll
 usr/bin/cygsvn_subr-1-0.dll
 usr/bin/cygsvn_wc-1-0.dll

IMHO, these are the important ones...

 usr/bin/svn.exe
 usr/bin/svnadmin.exe
 usr/bin/svndumpfilter.exe
 usr/bin/svnlook.exe
 usr/bin/svnserve.exe
 usr/bin/svnversion.exe
 ...

...and these are irrelevant.

 I propose to relocate all the above into a directory /usr/bin/subversion,
 and add symlinks to the executables in /usr/bin .

Why not use /usr/share/subversion, or even /opt/subversion, for the DLLs?
You can then compile the subversion executables to look for DLLs in the
above directory.  I don't see a need to move the executables themselves.

 The reason is:

 Suppose I wish to use some python bindings, built against a different
 version of the subversion libraries (installed in /usr/local), with the
 Cygwin system python in /usr/bin.

 *Whatever* I set PATH to, the subversion libraries from /usr/bin will be
 the ones loaded, because they are in the same directory as python.exe .

True.  I'm just not sure I like the subdirectories in /usr/bin.

 By hiding these libraries in a subdirectory, and revealing the
 executables via symlinks, I ensure that Python bindings will load
 subversion libraries according to PATH, allowing users the flexibility
 to install a different subversion version.

 I hereby request comments/review of this packaging change proposal.
 Max.

HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton


Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-06 Thread Charles Wilson
Dr. Volker Zell wrote:
Christopher Faylor writes:

 Sorry, no.  /usr/bin is a flat structure.  It does not contain subdirectories.
There are
glui-examples
ncurses-test-dll
I'll relocate ncurses-test-dll to /usr/lib/ncurses/test/ on the next 
release. (/usr/lib/ not /usr/share, because these are arch-specific 
binaries)

--
Chuck


Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-06 Thread Christopher Faylor
On Tue, Jul 06, 2004 at 03:58:53PM +0200, Dr. Volker Zell wrote:
 Christopher Faylor writes:

 Sorry, no.  /usr/bin is a flat structure.  It does not contain subdirectories.

There are

glui-examples
ncurses-test-dll

So, crossing the street when it says Don't Walk is ok since you saw
somebody do it just the other day?

cgf


Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-06 Thread Christopher Faylor
On Tue, Jul 06, 2004 at 02:45:32PM -0400, Charles Wilson wrote:
Dr. Volker Zell wrote:
Christopher Faylor writes:


 Sorry, no.  /usr/bin is a flat structure.  It does not contain 
subdirectories.

There are

glui-examples
ncurses-test-dll

I'll relocate ncurses-test-dll to /usr/lib/ncurses/test/ on the next 
release. (/usr/lib/ not /usr/share, because these are arch-specific 
binaries)

Thanks, Chuck.

cgf


Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-06 Thread Christopher Faylor
On Tue, Jul 06, 2004 at 10:21:55AM -0400, Igor Pechtchanski wrote:
On Tue, 6 Jul 2004, Max Bowsher wrote:
I propose to relocate all the above into a directory
/usr/bin/subversion, and add symlinks to the executables in /usr/bin .

Why not use /usr/share/subversion, or even /opt/subversion, for the
DLLs?  You can then compile the subversion executables to look for DLLs
in the above directory.  I don't see a need to move the executables
themselves.

Architecture specific binaries should not be in /usr/share.

cgf


Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin

2004-07-06 Thread Dr. Volker Zell
 Christopher Faylor writes:

 So, crossing the street when it says Don't Walk is ok since you saw
 somebody do it just the other day?

Well...

 cgf

vz



RE: How to execute bash file under /usr/bin despite setting PATH= /us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-11 Thread Nguyen, Huu-Dung
I can say On the CD purchased from MicroCross there is no source code

Nguyen

-Original Message-
From: Christopher Faylor
[mailto:[EMAIL PROTECTED]
Sent: Freitag, 5. Dezember 2003 19:05
To: [EMAIL PROTECTED]
Subject: Re: How to execute bash file under /usr/bin despite setting
PATH=/us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH


On Fri, Dec 05, 2003 at 12:57:22PM -0500, Jon A. Lambert wrote:
Nguyen, Huu-Dung wrote:
I encounter the problem while installing a tool running on Cygwin, that
comes from MicroCross (www.microcross.com) XTools The tool installs all
important things and the bash setup file to /usr/bin.

Right.  They are the ones creating a physical c:\cygwin\usr\bin
directory because their installation mechanism is to Win(un)zip all the
files.  Their installation instructions also tell you to uninstall
Cygwin and remove all the cygwin files and directories, and to remove
all the registry entries for Cygwin Solutions, (which happen to include
the mount points).  Looks like their version of Cygwin is ancient,
either 1.2 or 1.3.22.

obligatory questionDoes MicroCross provide source code for the cygwin
they provide?/obligatory question

I'm sure this has come up before but I'd like to hear from anyone who has
purchased something recently.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: How to execute bash file under /usr/bin despite setting PATH=/us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-05 Thread Jörg Schaible
Jon A. Lambert wrote on Thursday, December 04, 2003 7:03 PM:
 Nguyen, Huu-Dung wrote:
 Thank for the answers
 
 Can any gurus tell me what is the real use of /usr/bin as a mount
 point and /usr/bin as a physically existing directory in the Cygwin
 directory ? Sometime i am too much curious !?
 
 Nguyen
 
 I'm stumped as I can't think of any use.
 Why did you create the physical directory?

It is the way mount works (in any Unix)! You can force a mount without a mount point, 
but ls the parent directory and you see why. The only question you could arise for 
Cygwin here is why they use a mount at all for /usr/bin, but that's in the FAQ 
although I suppose it is more for historical reasons and the (unnecessary) hassle that 
would arise separating these directories now.

Regards,
Jörg

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: How to execute bash file under /usr/bin despite setting PATH= /us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-05 Thread Nguyen, Huu-Dung
OK

Now i understand a little bit (NOT 100%) the fine features of /usr/bin as
mount point and as physicically existing directory.

I encounter the problem while installing a tool running on Cygwin, that
comes from MicroCross (www.microcross.com) XTools
The tool installs all important things and the bash setup file to /usr/bin.

In this case i can only rename my /usr/bin to some thing e.g. /usr/local/bin
or the same.


Regards


nguyen
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How to execute bash file under /usr/bin despite setting PATH=/us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-05 Thread Christopher Faylor
On Fri, Dec 05, 2003 at 09:59:15AM +0100, J?rg Schaible wrote:
It is the way mount works (in any Unix)! You can force a mount without
a mount point, but ls the parent directory and you see why.  The only
question you could arise for Cygwin here is why they use a mount at all
for /usr/bin, but that's in the FAQ although I suppose it is more for
historical reasons and the (unnecessary) hassle that would arise
separating these directories now.

Nah.  It's just because we are so frigging mean.

WASFM

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How to execute bash file under /usr/bin despite setting PATH= /us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-05 Thread Christopher Faylor
On Fri, Dec 05, 2003 at 12:45:43PM +0100, Nguyen, Huu-Dung wrote:
Now i understand a little bit (NOT 100%) the fine features of /usr/bin
as mount point and as physicically existing directory.

I encounter the problem while installing a tool running on Cygwin, that
comes from MicroCross (www.microcross.com) XTools The tool installs all
important things and the bash setup file to /usr/bin.

Then contact MicroCross.  This is not a MicroCross support forum.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: How to execute bash file under /usr/bin despite setting PATH=/us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-05 Thread Jörg Schaible
Christopher Faylor wrote on Friday, December 05, 2003 3:23 PM:
 Nah.  It's just because we are so frigging mean.

Walking on the edge for so many years now g

 WASFM

Igor, wtf cannot translate ... :)

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How to execute bash file under /usr/bin despite setting PATH=/us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-05 Thread Jon A. Lambert
Jörg Schaible wrote:
 Jon A. Lambert wrote on Thursday, December 04, 2003 7:03 PM:
Nguyen, Huu-Dung wrote:
 Thank for the answers

 Can any gurus tell me what is the real use of /usr/bin as a mount
 point and /usr/bin as a physically existing directory in the Cygwin
 directory ? Sometime i am too much curious !?

 Nguyen

 I'm stumped as I can't think of any use.
 Why did you create the physical directory?

 It is the way mount works (in any Unix)! You can force a mount without a mount 
 point, but ls the parent directory and
you see
 why. The only question you could arise for Cygwin here is why they use a mount at 
 all for /usr/bin, but that's in the
FAQ
 although I suppose it is more for historical reasons and the (unnecessary) hassle 
 that would arise separating these
directories
 now.

And all this time I've been running cygwin with no physical c:\cygwin\usr\bin 
directory.
Maybe I should open up a DOS window and create it.  No I don't think I will.
I think the mount of C:/cygwin/bin /usr/bin is sufficient.

--
J. Lambert




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: How to execute bash file under /usr/bin despite setting PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-05 Thread Igor Pechtchanski
On Fri, 5 Dec 2003, Jörg Schaible wrote:

 Christopher Faylor wrote on Friday, December 05, 2003 3:23 PM:
  Nah.  It's just because we are so frigging mean.

 Walking on the edge for so many years now g

You mean teetering on the edge, don't you? ;-)

  WASFM

 Igor, wtf cannot translate ... :)

Jörg, wtf is just a dumb program -- you can't expect it to unveil the
meaning of newly-invented acronyms on its own.  The OLOCA has it, though:
http://cygwin.com/acronyms/#WASFM.  FWIW, wtf will have it on the next
package update (as usual).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How to execute bash file under /usr/bin despite setting PATH=/us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-05 Thread Jon A. Lambert
Nguyen, Huu-Dung wrote:
 
 I encounter the problem while installing a tool running on Cygwin, that
 comes from MicroCross (www.microcross.com) XTools
 The tool installs all important things and the bash setup file to /usr/bin.


Right.  They are the ones creating a physical c:\cygwin\usr\bin directory
because their installation mechanism is to Win(un)zip all the files.
Their installation instructions also tell you to uninstall Cygwin and remove
all the cygwin files and directories, and to remove all the registry entries 
for Cygwin Solutions, (which happen to include the mount points).
Looks like their version of Cygwin is ancient, either 1.2 or 1.3.22. 

--
J. Lambert



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How to execute bash file under /usr/bin despite setting PATH=/us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-05 Thread Christopher Faylor
On Fri, Dec 05, 2003 at 12:57:22PM -0500, Jon A. Lambert wrote:
Nguyen, Huu-Dung wrote:
I encounter the problem while installing a tool running on Cygwin, that
comes from MicroCross (www.microcross.com) XTools The tool installs all
important things and the bash setup file to /usr/bin.

Right.  They are the ones creating a physical c:\cygwin\usr\bin
directory because their installation mechanism is to Win(un)zip all the
files.  Their installation instructions also tell you to uninstall
Cygwin and remove all the cygwin files and directories, and to remove
all the registry entries for Cygwin Solutions, (which happen to include
the mount points).  Looks like their version of Cygwin is ancient,
either 1.2 or 1.3.22.

obligatory questionDoes MicroCross provide source code for the cygwin
they provide?/obligatory question

I'm sure this has come up before but I'd like to hear from anyone who has
purchased something recently.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How to execute bash file under /usr/bin despite setting PATH=/us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-05 Thread Jon A. Lambert
Christopher Faylor wrote:
 obligatory questionDoes MicroCross provide source code for the cygwin
 they provide?/obligatory question
 
 I'm sure this has come up before but I'd like to hear from anyone who has
 purchased something recently.
 

http://www.microcross.com/html/copying_rights.html

Microcross provides customers source code along with distributions that it 
sells with no copy/duplication restrictions as required by the Free Software 
Foundation and the General Public License (GPL). 
 
--
J. Lambert


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How to execute bash file under /usr/bin despite setting PATH=/us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-05 Thread Christopher Faylor
On Fri, Dec 05, 2003 at 02:06:40PM -0500, Jon A. Lambert wrote:
Christopher Faylor wrote:
 obligatory questionDoes MicroCross provide source code for the cygwin
 they provide?/obligatory question
 
 I'm sure this has come up before but I'd like to hear from anyone who has
 purchased something recently.
 

http://www.microcross.com/html/copying_rights.html

Microcross provides customers source code along with distributions that it 
sells with no copy/duplication restrictions as required by the Free Software 
Foundation and the General Public License (GPL). 

Yes, I saw that, too.  I'd like actual confirmation however.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: How to execute bash file under /usr/bin despite setting PATH= /us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-04 Thread Nguyen, Huu-Dung
Thank for the answers

Can any gurus tell me what is the real use of /usr/bin as a mount point and
/usr/bin as a physically existing directory in the Cygwin directory ?
Sometime i am too much curious !?

Nguyen

-Original Message-
From: Ronald Landheer-Cieslak [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 3. Dezember 2003 13:30
To: [EMAIL PROTECTED]
Subject: Re: How to execute bash file under /usr/bin despite setting
PATH=/us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH


On Wed, Dec 03, 2003 at 10:43:23AM +0100, Nguyen, Huu-Dung wrote:
 Please help me to understand Cygwin because i am an unexperienced user of
 CygWin
 
 I want to start some bash files or *.exe under /usr/bin so i have set in
my
 profile file
 ...
 PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH
 ...
 and put my bash files or *.exe under /usr/bin but i can not start them
from
 anywhere in the Cygwin session.
Did you perchange put your files in c:\cygwin\usr\bin ? (assuming you
installed
in c:\cygwin)
If so, you should know that the c:\cygwin\bin directory is mounted to
/usr/bin,
which makes the contents of c:\cygwin\usr\bin invisible from within the
Cygwin
environment. This is by design. Move the files to c:\cygwin\bin and you
should
be OK.

Note that in all this, I assume you've installed Cygwin's root in c:\cygwin.
If
it's in q:\tralala (which is possible, of course) replace every instance of
c:\cygwin above with q:\tralala.

 Why and what can i do to start them from anywhere in the Cygwin session ?
If the above doesn't help, look at http://cygwin.com/problems.html to know
how to give us more information about you problem :)

HTH

rlc

-- 
Fraud is the homage that force pays to reason.
-- Charles Curtis, A Commonplace Book

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How to execute bash file under /usr/bin despite setting PATH=/us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-04 Thread Jon A. Lambert
Nguyen, Huu-Dung wrote:
 Thank for the answers
 
 Can any gurus tell me what is the real use of /usr/bin as a mount point and
 /usr/bin as a physically existing directory in the Cygwin directory ?
 Sometime i am too much curious !?

 Nguyen

I'm stumped as I can't think of any use.  
Why did you create the physical directory?

--
J. Lambert


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: How to execute bash file under /usr/bin despite setting PATH= /us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-04 Thread Larry Hall
You're not curious enough.  This is UNIX semantics and functionality.
However, with UNIX, there is no way to access the contents of the 
actual /usr/bin directory once it's mounted.  On Windows, there are
ways (i.e. through Windows, etc).  If you always access /usr/bin with 
Cygwin tools, then you'll have no problem.  If you put something in the 
Windows directory which is the equivalent of /usr/bin under the Cygwin environment, 
you won't be able to access those files with Cygwin.  It's 
UNIX mount semantics, that's all.  There are ways around this issue but 
it's easier if you just live with it and move on, unless you have a 
pressing need to do otherwise.

Larry



At 02:56 AM 12/4/2003, Nguyen, Huu-Dung you wrote:
Thank for the answers

Can any gurus tell me what is the real use of /usr/bin as a mount point and
/usr/bin as a physically existing directory in the Cygwin directory ?
Sometime i am too much curious !?

Nguyen

-Original Message-
From: Ronald Landheer-Cieslak [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 3. Dezember 2003 13:30
To: [EMAIL PROTECTED]
Subject: Re: How to execute bash file under /usr/bin despite setting
PATH=/us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH


On Wed, Dec 03, 2003 at 10:43:23AM +0100, Nguyen, Huu-Dung wrote:
 Please help me to understand Cygwin because i am an unexperienced user of
 CygWin
 
 I want to start some bash files or *.exe under /usr/bin so i have set in
my
 profile file
 ...
 PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH
 ...
 and put my bash files or *.exe under /usr/bin but i can not start them
from
 anywhere in the Cygwin session.
Did you perchange put your files in c:\cygwin\usr\bin ? (assuming you
installed
in c:\cygwin)
If so, you should know that the c:\cygwin\bin directory is mounted to
/usr/bin,
which makes the contents of c:\cygwin\usr\bin invisible from within the
Cygwin
environment. This is by design. Move the files to c:\cygwin\bin and you
should
be OK.

Note that in all this, I assume you've installed Cygwin's root in c:\cygwin.
If
it's in q:\tralala (which is possible, of course) replace every instance of
c:\cygwin above with q:\tralala.

 Why and what can i do to start them from anywhere in the Cygwin session ?
If the above doesn't help, look at http://cygwin.com/problems.html to know
how to give us more information about you problem :)

HTH

rlc

-- 
Fraud is the homage that force pays to reason.
-- Charles Curtis, A Commonplace Book

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How to execute bash file under /usr/bin despite setting PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-04 Thread Igor Pechtchanski
On Thu, 4 Dec 2003, Jon A. Lambert wrote:

 Nguyen, Huu-Dung wrote:
  Thank for the answers
 
  Can any gurus tell me what is the real use of /usr/bin as a mount point and
  /usr/bin as a physically existing directory in the Cygwin directory ?
  Sometime i am too much curious !?
 
  Nguyen

 I'm stumped as I can't think of any use.
 Why did you create the physical directory?
 --
 J. Lambert

Same reason as having c:\cygwin\dev, c:\cygwin\cygdrive, and
c:\cygwin\proc -- Tab completion. ;-)
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



How to execute bash file under /usr/bin despite setting PATH=/us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-03 Thread Nguyen, Huu-Dung
Hello friends

Please help me to understand Cygwin because i am an unexperienced user of
CygWin

I want to start some bash files or *.exe under /usr/bin so i have set in my
profile file
...
PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH
...
and put my bash files or *.exe under /usr/bin but i can not start them from
anywhere in the Cygwin session.

Why and what can i do to start them from anywhere in the Cygwin session ?

Regards


Huu Dung Nguyen

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: How to execute bash file under /usr/bin despite setting PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-03 Thread Jörg Schaible
Hello Huh-Dung,

Nguyen, Huu-Dung wrote on Wednesday, December 03, 2003 10:43 AM:
 Please help me to understand Cygwin because i am an unexperienced
 user of CygWin 
 
 I want to start some bash files or *.exe under /usr/bin so i
 have set in my profile file ...
 PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH ...
 and put my bash files or *.exe under /usr/bin but i can not
 start them from anywhere in the Cygwin session.
 
 Why and what can i do to start them from anywhere in the Cygwin
 session ? 

as explained before /usr/bin is a mount point to /bin and therefroe nothing physically 
located in /usr/bin will be found. This behaviour for mount point is *normal* in any 
Unix. This mount point is standard for Cygwin as explained in the FAQ:

http://cygwin.com/faq/faq_4.html#SEC61

Regards,
Jörg

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How to execute bash file under /usr/bin despite setting PATH=/us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

2003-12-03 Thread Ronald Landheer-Cieslak
On Wed, Dec 03, 2003 at 10:43:23AM +0100, Nguyen, Huu-Dung wrote:
 Please help me to understand Cygwin because i am an unexperienced user of
 CygWin
 
 I want to start some bash files or *.exe under /usr/bin so i have set in my
 profile file
 ...
 PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH
 ...
 and put my bash files or *.exe under /usr/bin but i can not start them from
 anywhere in the Cygwin session.
Did you perchange put your files in c:\cygwin\usr\bin ? (assuming you installed
in c:\cygwin)
If so, you should know that the c:\cygwin\bin directory is mounted to /usr/bin,
which makes the contents of c:\cygwin\usr\bin invisible from within the Cygwin
environment. This is by design. Move the files to c:\cygwin\bin and you should
be OK.

Note that in all this, I assume you've installed Cygwin's root in c:\cygwin. If
it's in q:\tralala (which is possible, of course) replace every instance of
c:\cygwin above with q:\tralala.

 Why and what can i do to start them from anywhere in the Cygwin session ?
If the above doesn't help, look at http://cygwin.com/problems.html to know
how to give us more information about you problem :)

HTH

rlc

-- 
Fraud is the homage that force pays to reason.
-- Charles Curtis, A Commonplace Book

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/