* Strange error during /etc/profile
@ 2011-04-04 12:30 DEWI - N. Zacharias
2011-04-04 12:49 ` Additional Infos: " DEWI - N. Zacharias
0 siblings, 1 reply; 4+ messages in thread
From: DEWI - N. Zacharias @ 2011-04-04 12:30 UTC (permalink / raw)
To: cygwin
Hi all,
After updating cygwin to the newest version after 3 Month I get a strange error 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 '*.zsh' | LC_ALL=C 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.Zacharias@dewi.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ämpny
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Additional Infos: Strange error during /etc/profile
2011-04-04 12:30 Strange error during /etc/profile DEWI - N. Zacharias
@ 2011-04-04 12:49 ` DEWI - N. Zacharias
2011-04-04 13:00 ` David Sastre
0 siblings, 1 reply; 4+ messages in thread
From: DEWI - N. Zacharias @ 2011-04-04 12:49 UTC (permalink / raw)
To: cygwin
Hi all,
the error only shows up if I start from a network drive.(Netware)
If I modify /etc/profile like
MYPWD=$(pwd);
cd /cygdrive/c
[.... do stuff...]
cd $MYPWD
everything works fine.
Norbert
> Gesendet: Montag, 4. April 2011 10:38
> Betreff: [bulk] - Strange error during /etc/profile
>
>
> Hi all,
>
> After updating cygwin to the newest version after 3 Month I get a strange
> error 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 '*.zsh' |
> LC_ALL=C 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.Zacharias@dewi.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ämpny
>
> 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
--------------------------------------------------------------------------
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.Zacharias@dewi.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ämpny
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Additional Infos: Strange error during /etc/profile
2011-04-04 12:49 ` Additional Infos: " DEWI - N. Zacharias
@ 2011-04-04 13:00 ` David Sastre
2011-04-04 13:00 ` AW: [bulk] - " DEWI - N. Zacharias
0 siblings, 1 reply; 4+ messages in thread
From: David Sastre @ 2011-04-04 13:00 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1734 bytes --]
On Mon, Apr 04, 2011 at 11:02:57AM +0200, DEWI - N. Zacharias wrote:
> > After updating cygwin to the newest version after 3 Month I get a strange
> > error 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
> >
> > 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 '*.zsh' |
> > LC_ALL=C sort`
> > EOF
> > fi
> >
> the error only shows up if I start from a network drive.(Netware)
> If I modify /etc/profile like
>
> MYPWD=$(pwd);
> cd /cygdrive/c
> [.... do stuff...]
> cd $MYPWD
>
> everything works fine.
The snippet of code you quoted above belongs to an old version of
base-files.
With your update, a new base-files package should have been installed.
Please check this with:
$ cygcheck -c base-files
It should report version 4.0-6.
The fact that /etc/profile wasn't automatically updated shows that you
manually modified it.
Please check if the new version (find it at /etc/defaults/etc/profile)
solves the problem for you. If it does, you can add your
customizations to it afterwards.
Ensure you backup your files before and please report back if you
succeeded.
--
Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* AW: [bulk] - Re: Additional Infos: Strange error during /etc/profile
2011-04-04 13:00 ` David Sastre
@ 2011-04-04 13:00 ` DEWI - N. Zacharias
0 siblings, 0 replies; 4+ messages in thread
From: DEWI - N. Zacharias @ 2011-04-04 13:00 UTC (permalink / raw)
To: cygwin
Hi Dave,
> Von: David Sastre
> Gesendet: Montag, 4. April 2011 13:23
> Betreff: [bulk] - Re: Additional Infos: Strange error during /etc/profile
>
> On Mon, Apr 04, 2011 at 11:02:57AM +0200, DEWI - N. Zacharias wrote:
> > > After updating cygwin to the newest version after 3 Month I get a
> strange
> > > error 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
[....]
> The fact that /etc/profile wasn't automatically updated shows that you
> manually modified it.
That was true. Centuries ago I add some environment variable settings.
> Please check if the new version (find it at /etc/defaults/etc/profile)
> solves the problem for you.
It works !
> If it does, you can add your
> customizations to it afterwards.
That was not necessary because the settings have moved now to profile.d
Thanks a lot
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.Zacharias@dewi.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ämpny
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-04-04 12:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-04 12:30 Strange error during /etc/profile DEWI - N. Zacharias
2011-04-04 12:49 ` Additional Infos: " DEWI - N. Zacharias
2011-04-04 13:00 ` David Sastre
2011-04-04 13:00 ` AW: [bulk] - " DEWI - N. Zacharias
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).