delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/04/04/04:39:11

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.3 required=5.0 tests=AWL,BAYES_50,RFC_ABUSE_POST,T_FILL_THIS_FORM_SHORT
X-Spam-Check-By: sourceware.org
From: "DEWI - N. Zacharias" <N DOT Zacharias AT dewi DOT de>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Mon, 4 Apr 2011 10:38:26 +0200
Subject: Strange error during /etc/profile
Message-ID: <8CCC8F85C5F2784387A32FAD835FB4E603C19614B1@server03>
MIME-Version: 1.0
X-purgate-sourceid: 1Q6fIo-0006J8-Vy
X-purgate-Ad: Checked for spam and viruses by eXpurgate(R), see www.eleven.de for details.
X-purgate-ID: 151534::1301906307-00003E11-09F2CAFB/0-0/0-0
X-purgate: clean
X-purgate-type: clean
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

Hi all,

After updating cygwin to the newest version after 3 Month I get a strange e=
rror if I start the Xwindow with bash as usual

/bin/find: `standard output': Bad file descriptor
/bin/find: Schreibfehler.

I can trace that to the attempt of /etc/profile to read /etc/profile.d

# Run all of the profile.d scripts
# Note that these are supplied by separate packages
# Ascending alphanumerical order enforced

#next line for debugging
echo before trying to read /etc/profile

if [ -d "/etc/profile.d" ]; then
        while read f; do
                if [ -f "${f}" ]; then
                        . "${f}"
                fi
        done <<- EOF
        `/bin/find -L /etc/profile.d -type f -iname '*.sh' -or -iname '*.zs=
h' | LC_ALL=3DC sort`
        EOF
fi
#next line for debugging
echo after trying to read /etc/profile

after adding the debugging lines I get

before trying to read /etc/profile
/bin/find: `standard output': Bad file descriptor
/bin/find: Schreibfehler.
after trying to read /etc/profile

but if I execute the /bin/find .... line from the xwindow everything works =
as expected.

So do someone has an idea what's going on here ??

Thanks
Norbert


--------------------------------------------------------------------------
Dipl. Phys.
Norbert Zacharias
Wind Measurements & Power Curve Measurements
DEWI GmbH
Ebertstrasse 96
26382 Wilhelmshaven
Germany


Tel.:   +49 4421 4808 876

Fax:    +49 4421 4808 843


Email:  N DOT Zacharias AT dewi DOT de
Home:   http://www.dewi.de

DEWI GmbH - Deutsches Windenergie-Institut, Wilhelmshaven
Commercial Register No.: Amtsgericht Oldenburg, HRB 130241
Managing Director: Jens Peter Molly
Chairman of the supervisory board: Ministerialrat Dr. Niels K=E4mpny

P Please consider the environment before printing this email.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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