This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: can't open file for writing


C Schreiner, ++++++-owner@cygwin.+++ wrote:
> I can not save to a nonexistant file name under
> Cygwin, but I can under Windows.
> 
> When I type:
> 
>    cat "hello" > foo.txt

I suppose you MEANT "echo" here... otherwise:

$ cat "hello" >foo.txt
cat: hello: No such file or directory
$ echo "hello" >foo.txt                       
$ cat foo.txt
hello

> under Cygwin I get this error message:
> 
>    bash: foo.txt: No such file or directory
> 
> (unless foo.txt already exists in the current
> directory).  This only happens with network
> filesystems.
<SNIP>

/Hannu E K Nevalainen, B.Sc. EE Microcomputer systems            --72-->

** mailing list preference; please keep replies on list **

-- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); --
--END OF MESSAGE--

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]