delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/03/16:28:01

X-Spam-Check-By: sourceware.org
Message-ID: <45C4FE5C.5080400@byu.net>
Date: Sat, 03 Feb 2007 14:27:56 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: bash 3.2.9-11 here doc permission problem
References: <7FBC16D72C0ABF45A88EAEB9ED3464C422C385 AT sausatlexch01 DOT corp DOT sa DOT net>
In-Reply-To: <7FBC16D72C0ABF45A88EAEB9ED3464C422C385@sausatlexch01.corp.sa.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

-----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 AT byu DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019