Problem with cat under bash shell

Lionel Barnett lionelbuk@yahoo.co.uk
Thu Sep 16 09:25:00 GMT 2004


 --- Lionel Barnett <lionelbuk@yahoo.co.uk> wrote: 
> Hi,
> 
> Still no joy on this problem (Cygwin ver 1.5.11)
> 
> bash -c "cat << EOF"
> 
> fails with:
> 
> cat: -: Permission denied
> 
> The corresponding command under sh, tcsh or zsh causes no problem.

Seems like it could be a permissions problem with /tmp.  Lines 1162 -
1164 in the strace output (attached) are:

  743  120125 [main] cat 2668 fhandler_base::raw_read: ReadFile
/tmp/sh-thd-1095306567 failed, Win32 error 59
 1746  121871 [main] cat 2668 seterrno_from_win_error:
/netrel/src/cygwin-1.5.11-1/winsup/cygwin/fhandler.cc:263 windows error
59
  756  122627 [main] cat 2668 geterrno_from_win_error: unknown windows
error 59, setting errno to 13

The directory listing for /tmp is:

drwxr-xr-x    1 lionel   Domain U     4096 Sep 16 09:26 tmp

which looks ok to me, so I'm none the wiser. However, a workaround was
to symlink /tmp to C:\temp.

Would still like to know why the read of /tmp fails, 'though.

Attached are strace and cygcheck output.

Regards,

=====
Lionel B


	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun!  http://uk.messenger.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strace.out
Type: application/octet-stream
Size: 123545 bytes
Desc: strace.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040916/de38daa5/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 31651 bytes
Desc: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040916/de38daa5/attachment-0001.obj>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list