| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_YG,T_TO_NO_BRKTS_FREEMAIL |
| X-Spam-Check-By: | sourceware.org |
| Date: | Mon, 4 Apr 2011 13:23:16 +0200 |
| From: | David Sastre <d DOT sastre DOT medina AT gmail DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Additional Infos: Strange error during /etc/profile |
| Message-ID: | <20110404112316.GA5426@jethro.local.lan> |
| References: | <8CCC8F85C5F2784387A32FAD835FB4E603C19614B1 AT server03> <8CCC8F85C5F2784387A32FAD835FB4E603C19614B2 AT server03> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <8CCC8F85C5F2784387A32FAD835FB4E603C19614B2@server03> |
| User-Agent: | Mutt/1.5.20 (2009-06-14) |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
--wac7ysb48OaltWcw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
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 stran=
ge
> > 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=3DC sort`
> > EOF
> > fi
> >
> the error only shows up if I start from a network drive.(Netware)
> If I modify /etc/profile like
>=20
> MYPWD=3D$(pwd);
> cd /cygdrive/c
> [.... do stuff...]
> cd $MYPWD
>=20
> 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.
--=20
Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB
--wac7ysb48OaltWcw
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk2ZqiMACgkQYX05bESLMet7EQCeLAes+wXkG2RzOjsQ7k8aKnr8
4s0AnAhreWAk1YMfagFUItKK1cS0KLdH
=Dvu2
-----END PGP SIGNATURE-----
--wac7ysb48OaltWcw--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |