public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: text / binary mounts (sorry)
@ 2000-06-02  6:35 Earnie Boyd
  2000-06-02  9:02 ` Re[2]: " Egor Duda
  0 siblings, 1 reply; 9+ messages in thread
From: Earnie Boyd @ 2000-06-02  6:35 UTC (permalink / raw)
  To: Matthew Lowther, 'cygwin@sourceware.cygnus.com'

The command `mount --help' might have helped in this instance.

mount -b --change-cygdrive-prefix /cygdrive


Cheers,
Earnie.
--- Matthew Lowther <m.lowther@standard-platforms.co.uk> wrote:
> 
> Hullo,
> 	I use cygwin (snapshot 05252000) , mainly to access cvs and make, so
> I can build the same source on NT and unix.
> 
> When I check things out in CVS I don't want lots of Dos Line Feeds being
> added.
> This is OK, so long as I mount the relevant drive as a binary mount.
> 
> BUT is there anything I can setup to make all drives act as binary mounts
> automatically. 
> The problem is that if a drive isn't mounted at all, then I get dos line
> feeds at the end of each line.  So people not accustomed to using bash use
> cvs and unknowingly add dos line feeds to all the source files, this gets
> repeated .... and we end up with lots and lots of horrible dos line feed
> characters in all the source.
> 
> Thanks in advance for any help I may get, I'm scared to send this message
> because I know there's been alot of mail about CR/LF issues, but I'm
> desperatley hoping I can stop these ^M's infiltrating our source code.
> 
> 	Maff.
> 
> P.S. Problem description.
> 
> If I run bash and say change to the t drive
> cd t:/
> echo "bob" >fred
> vi fred
> ->produces
> bob^M
> ie. with a dos line feed thing.
> 
> If I do mount -b t: /t
> and do the above, it produces
> bob
> ie. no dos line feed.
> 
> But can I make echo "bob" > fred produce a file fred with no dos line feed
> without having to make sure I've done the mount?
> 
> Attached is the cygcheck thing
> .. <<cygcheck.out>> 
> 
> 
> 
> --
> Matthew Lowther                   Direct Dial: +44 (0)1252 401033
> Software Consultant               Switchboard: +44 (0)1252 401000
> Standard Platforms Limited        Fax        : +44 (0)1252 336934
> http://www.standard-platforms.co.uk        mailto:maff@bssl.co.uk
> 
> 

> ATTACHMENT part 2 application/octet-stream name=cygcheck.out
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com


__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com

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

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

* Re[2]: text / binary mounts (sorry)
  2000-06-02  6:35 text / binary mounts (sorry) Earnie Boyd
@ 2000-06-02  9:02 ` Egor Duda
  2000-06-02 11:26   ` Chris Faylor
  0 siblings, 1 reply; 9+ messages in thread
From: Egor Duda @ 2000-06-02  9:02 UTC (permalink / raw)
  To: Earnie Boyd; +Cc: cygwin

Hi!

Friday, 02 June, 2000 Earnie Boyd earnie_boyd@yahoo.com wrote:

EB> The command `mount --help' might have helped in this instance.

EB> mount -b --change-cygdrive-prefix /cygdrive

btw,  i think this should go to the FAQ. I've stumbled over this issue
myself some time ago :) Since i all my explicit mounts are binary, and
CYGWIN=binmode,  i've got a nice surprise when i added new disk (which
mounts  as  /cygdrive/h)  and immediately got all those nice text-mode
features. it take me to look at the sources to find out what happened.

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19



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

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

* Re: text / binary mounts (sorry)
  2000-06-02  9:02 ` Re[2]: " Egor Duda
@ 2000-06-02 11:26   ` Chris Faylor
  2000-06-02 11:50     ` Bob McGowan
  2000-06-05  6:41     ` Jason Tishler
  0 siblings, 2 replies; 9+ messages in thread
From: Chris Faylor @ 2000-06-02 11:26 UTC (permalink / raw)
  To: cygwin

On Fri, Jun 02, 2000 at 07:59:15PM +0400, Egor Duda wrote:
>Friday, 02 June, 2000 Earnie Boyd earnie_boyd@yahoo.com wrote:
>
>EB> The command `mount --help' might have helped in this instance.
>
>EB> mount -b --change-cygdrive-prefix /cygdrive
>
>btw,  i think this should go to the FAQ. I've stumbled over this issue
>myself some time ago :) Since i all my explicit mounts are binary, and
>CYGWIN=binmode,  i've got a nice surprise when i added new disk (which
>mounts  as  /cygdrive/h)  and immediately got all those nice text-mode
>features. it take me to look at the sources to find out what happened.

I'm always thrilled when people inspect the sources but this is fairly
well documented in the Cygwin user's guide.

I'll see about getting it in the FAQ, though.

cgf

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

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

* Re: text / binary mounts (sorry)
  2000-06-02 11:26   ` Chris Faylor
@ 2000-06-02 11:50     ` Bob McGowan
  2000-06-02 13:16       ` Chris Faylor
  2000-06-05  6:41     ` Jason Tishler
  1 sibling, 1 reply; 9+ messages in thread
From: Bob McGowan @ 2000-06-02 11:50 UTC (permalink / raw)
  To: cygwin

Is there any way to determine the current status of the
cygdrive-prefix?  I don't see anything in the normal mount output (not
that I would expect to), but there does not appear to be any way to
check this, short of checking the registry.

Thanks.

Chris Faylor wrote:
> 
> On Fri, Jun 02, 2000 at 07:59:15PM +0400, Egor Duda wrote:
> >Friday, 02 June, 2000 Earnie Boyd earnie_boyd@yahoo.com wrote:
> >
> >EB> The command `mount --help' might have helped in this instance.
> >
> >EB> mount -b --change-cygdrive-prefix /cygdrive
> >
> >btw,  i think this should go to the FAQ. I've stumbled over this issue
> >myself some time ago :) Since i all my explicit mounts are binary, and
> >CYGWIN=binmode,  i've got a nice surprise when i added new disk (which
> >mounts  as  /cygdrive/h)  and immediately got all those nice text-mode
> >features. it take me to look at the sources to find out what happened.
> 
> I'm always thrilled when people inspect the sources but this is fairly
> well documented in the Cygwin user's guide.
> 
> I'll see about getting it in the FAQ, though.
> 
> cgf
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan@veritas.com

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

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

* Re: text / binary mounts (sorry)
  2000-06-02 11:50     ` Bob McGowan
@ 2000-06-02 13:16       ` Chris Faylor
  2000-06-02 14:03         ` Jeremy Sheeley
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Faylor @ 2000-06-02 13:16 UTC (permalink / raw)
  To: cygwin

On Fri, Jun 02, 2000 at 11:50:26AM -0700, Bob McGowan wrote:
>Is there any way to determine the current status of the
>cygdrive-prefix?  I don't see anything in the normal mount output (not
>that I would expect to), but there does not appear to be any way to
>check this, short of checking the registry.

There is no way to check this via the mount command currently, no.
The only method is the registry.

cgf

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

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

* Re: text / binary mounts (sorry)
  2000-06-02 13:16       ` Chris Faylor
@ 2000-06-02 14:03         ` Jeremy Sheeley
  2000-06-02 14:05           ` Chris Faylor
  0 siblings, 1 reply; 9+ messages in thread
From: Jeremy Sheeley @ 2000-06-02 14:03 UTC (permalink / raw)
  To: cygwin

Chris Faylor wrote:
> 
> On Fri, Jun 02, 2000 at 11:50:26AM -0700, Bob McGowan wrote:
> >Is there any way to determine the current status of the
> >cygdrive-prefix?  I don't see anything in the normal mount output (not
> >that I would expect to), but there does not appear to be any way to
> >check this, short of checking the registry.
> 
> There is no way to check this via the mount command currently, no.
> The only method is the registry.

Instead of going into the registry, you could try:

cygpath -u c:

which should give you /cygdrive-prefix/c

I'm probably missing something (I'm still a newbie at cygwin).

-Jeremy

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

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

* Re: text / binary mounts (sorry)
  2000-06-02 14:03         ` Jeremy Sheeley
@ 2000-06-02 14:05           ` Chris Faylor
  0 siblings, 0 replies; 9+ messages in thread
From: Chris Faylor @ 2000-06-02 14:05 UTC (permalink / raw)
  To: cygwin

On Fri, Jun 02, 2000 at 04:03:48PM -0500, Jeremy Sheeley wrote:
>
>
>Chris Faylor wrote:
>> 
>> On Fri, Jun 02, 2000 at 11:50:26AM -0700, Bob McGowan wrote:
>> >Is there any way to determine the current status of the
>> >cygdrive-prefix?  I don't see anything in the normal mount output (not
>> >that I would expect to), but there does not appear to be any way to
>> >check this, short of checking the registry.
>> 
>> There is no way to check this via the mount command currently, no.
>> The only method is the registry.
>
>Instead of going into the registry, you could try:
>
>cygpath -u c:
>
>which should give you /cygdrive-prefix/c
>
>I'm probably missing something (I'm still a newbie at cygwin).

That won't tell you if /cygdrive defaults to text or binary, though.

cgf

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

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

* Re: text / binary mounts (sorry)
  2000-06-02 11:26   ` Chris Faylor
  2000-06-02 11:50     ` Bob McGowan
@ 2000-06-05  6:41     ` Jason Tishler
  2000-06-05  8:48       ` Chris Faylor
  1 sibling, 1 reply; 9+ messages in thread
From: Jason Tishler @ 2000-06-05  6:41 UTC (permalink / raw)
  To: cygwin

Since we are discussing the mount command...

Both,

    mount --help

and

    http://sourceware.cygnus.com/cygwin/cygwin-ug-net/using-utils.html#MOUNT

indicate that the '--change-cygdrive-prefix' option can be used with
the '-s' option.  I assume that this would change the drive prefix on
a system-wide instead of just a user-wide basis.

Unfortunately, when I try

    mount -b -s --change-cygdrive-prefix /mnt

and look in the registry.  I see that

    HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2

changes and that

    HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2

remains unchanged.

Is this a documentation or programming bug?

Thanks,
Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corporation         Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

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

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

* Re: text / binary mounts (sorry)
  2000-06-05  6:41     ` Jason Tishler
@ 2000-06-05  8:48       ` Chris Faylor
  0 siblings, 0 replies; 9+ messages in thread
From: Chris Faylor @ 2000-06-05  8:48 UTC (permalink / raw)
  To: cygwin

On Mon, Jun 05, 2000 at 09:41:38AM -0400, Jason Tishler wrote:
>Since we are discussing the mount command...
>
>Both,
>
>    mount --help
>
>and
>
>    http://sourceware.cygnus.com/cygwin/cygwin-ug-net/using-utils.html#MOUNT
>
>indicate that the '--change-cygdrive-prefix' option can be used with
>the '-s' option.  I assume that this would change the drive prefix on
>a system-wide instead of just a user-wide basis.
>
>Unfortunately, when I try
>
>    mount -b -s --change-cygdrive-prefix /mnt
>
>and look in the registry.  I see that
>
>    HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
>
>changes and that
>
>    HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
>
>remains unchanged.
>
>Is this a documentation or programming bug?

Dunno.  How about checking out the sources and finding out?

cgf
(Who wonders if this thread will ever die)

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

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

end of thread, other threads:[~2000-06-05  8:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-02  6:35 text / binary mounts (sorry) Earnie Boyd
2000-06-02  9:02 ` Re[2]: " Egor Duda
2000-06-02 11:26   ` Chris Faylor
2000-06-02 11:50     ` Bob McGowan
2000-06-02 13:16       ` Chris Faylor
2000-06-02 14:03         ` Jeremy Sheeley
2000-06-02 14:05           ` Chris Faylor
2000-06-05  6:41     ` Jason Tishler
2000-06-05  8:48       ` Chris Faylor

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