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 create Bash here document.


YorkshireSkier BLOB aol.com wrote:
...
> However, if I try to use a command that uses the here document,
> I see the following error:
> 
> $ cat <<fred
>> 1
>> 2
>> 3
>> fred
> bash: cannot create temp file for here document: No such file or
> directory 
> 
> I can confirm that the variables TEMP and TMP (and TEMPDIR) are
> defined. All point to a valid subdirectory that has write
> permission. I can for instance 'touch $TEMP/fred' without difficulty.
> 
> I found one similar mailing about this in the archive - the
> respondant said this has come up before, but I cannot find the
> original mailing in the archive (or on the web). Please can
> someone point me in the right direction.

What does this display:
$ mount -m

I suspect that you need:
$ mount -fsb "$TEMP" "/tmp"


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