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: bash 3.2.9-11 here doc permission problem


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Shaffer, Kenneth on 2/3/2007 12:15 PM:
> I'm having problems with "here docs" after an upgrade.  Simply going
> back to bash 3.1-6 fixed the problem, but I'd thought I'd post cygchecks
> and straces.

The bash release recently changed to honor the setting of TMPDIR; perhaps
your script sets TMPDIR to some directory that you don't have adequate
permissions in?  Your cygcheck output didn't show any settings for TMPDIR,
in which case bash 3.2.x falls back to /tmp (bash 3.1 always used /tmp, no
matter what).  But the straces you posted show nothing along those lines;
when bash creates a temporary file for a here-doc, you would be able to
grep the strace for instances of 'sh-thd' to see what directory the
attempt is using.

Posting uninvited straces tends to be a bit big on mailing lists; usually
it is better to narrow them down to relevent portions (in this case, by
trying to grep for the file name that bash uses for heredocs) rather than
sending lots of unrelated data.

> This e-mail and any attachments may contain information which is confidential,

That's great that your employer wants to protect themselves, but it is
against list policy.  If you have no control over this unenforceable
legalese (at least, unenforceable on publicly archived lists), then open
up a web mail account.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFxP5b84KuGfSFAYARAiXyAKCu5bWePvss9tXZloAGNm8pddJiwgCgqpTC
6rqyFau+jG6GVWJ+lfW/Re8=
=oOow
-----END PGP SIGNATURE-----

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