Mail Archives: cygwin/1998/10/21/21:58:37
From: | blarsen AT intervett DOT no (=?iso-8859-1?Q?Bj=F8rn_Hell_Larsen?=)
|
Subject: | -b bug, feature or oddity ?
|
21 Oct 1998 21:58:37 -0700
: | |
Message-ID: | <001301bdfcde$92717410$124b47c1.cygnus.gnu-win32@sorokin.intervett.no>
|
Mime-Version: | 1.0
|
To: | "Gnu-Win32" <gnu-win32 AT cygnus DOT com>
|
I've been playing around with mount -b, and stumbled
across something that surprised me a bit.
a) I have a "binary file" (in this case: a file with
a CTRL-Z character at the start of line two):
SOROKIN ~> cd /
SOROKIN /> od -c foo
0000000 L i n e 1 \r \n 032 L i n e 2 \r
0000020 \n
0000021
b) If I try to 'cat' the file, it gets truncated. Fair enough:
SOROKIN /> cat foo
Line 1
SOROKIN />
c) I decide to create a binary mountpoint in order to be able to
see the entire file:
SOROKIN /> mount -b D: /binpoint
SOROKIN /> mount
Device Directory Type Flags
\\.\tape1: /dev/st1 native text!=binary
\\.\tape0: /dev/st0 native text!=binary
\\.\b: /dev/fd1 native text!=binary
\\.\a: /dev/fd0 native text!=binary
D: /binpoint native text=binary
D: / native text!=binary
d) I test the new mountpoint
SOROKIN /> cat /binpoint/foo
Line 1
Line 2
SOROKIN />
e) Worked just great. But here comes the catch:
SOROKIN /> cat /foo
Line 1
Line 2
SOROKIN /> cat //d/foo
Line 1
Line 2
SOROKIN /> cat 'D:\foo'
Line 1
Line 2
SOROKIN />
Ooops. It isn't just /binpoint that has become binary, it is
all references to D: !
Why is this, is it as it should be, and is it documented anywhere?
In advance thanks,
Bjorn
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -