This is the mail archive of the cygwin@cygwin.com 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: bash: cat << EOF


On Sat, 19 Jul 2003, Samuel Thibault wrote:

> Le sam 19 jui 2003 00:39:13 GMT, Christopher Faylor a tapot sur son clavier :
> > On Fri, Jul 18, 2003 at 09:38:46PM -0400, Samuel Thibault wrote:
> > >Hi,
> > >
> > >We have installed cygwin on w2k (5.00.2195 service pack 3), but the
> > >files are actually hosted by a samba server, connected on S:\, and we
> > >login to the box via rsh x11.
> > >
> > >The problem we're having is
> > >
> > >$ cat << EOF
> > >> foo
> > >> EOF
> > >cat: -: Permission denied
> > >
> > >this is the same with dd, ... so the problem must be with bash.
> > >I tried by copying bin/ on the local drive, relaunching bash.exe and
> > >cat.exe from there, same problem, so it might not be because of the
> > >networking thing.
> > >
> > >Is this a known limitation ? I couldn't find anything in the documentation
> > >or the FaQ
> >
> > http://cygwin.com/problems.html
>
> Oops, sorry I missed cygcheck, here it is.

Well, quoting your cygcheck output:

> s:\arch\windows-i386\cygwin\bin\id.exe output (nontsec)
> UID: 400(sthibaul)  GID: 401(mkpasswd)
> 401(mkpasswd)
>
> s:\arch\windows-i386\cygwin\bin\id.exe output (ntsec)
> UID: 400(sthibaul)  GID: 401(mkpasswd)
> 545(Utilisateurs)   10513(mkgroup_l_d)
> 401(mkpasswd)

Basically, this means that your /etc/passwd and /etc/group files aren't up
to date.  Try updating them and re-running your command.

Also, your strace output isn't useful, primarily because you weren't
tracing the relevant parts of the command.  You should have run

strace -o trace bash -c "cat <<EOF
foo
EOF"

This would have included the way bash resolves the "here document" in the
trace.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


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