public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Daniel Colascione <dancol@dancol.org>
To: cygwin@cygwin.com
Subject: Re: /etc/profile
Date: Wed, 22 Aug 2012 20:36:00 -0000	[thread overview]
Message-ID: <50353D71.9000306@dancol.org> (raw)
In-Reply-To: <20120822191002.GA5467@pris.crapsteak.org>

[-- Attachment #1: Type: text/plain, Size: 1714 bytes --]

On 8/22/12 12:10 PM, David Sastre Medina wrote:
> On Tue, Aug 21, 2012 at 10:16:28AM +0000, Achim Gratz wrote:
>> I'm removing the Windows PATH in my startup scripts since there's nothing in
>> there that I think should be accessible from Cygwin.
>> For (t)csh this is easy enough to do with dropping a script into /etc/profile.d
>> that gets executed first, but there's no such provision for sh and the ilk since
>> PATH is set up already before it get there.  Now, unless profile gets changed I
>> can still cut off "/usr/local/bin:/usr/bin:" with a profile.d script, but I
>> think it might be preferrable that the Windows path gets recorded into
>> ORIGINAL_PATH or some similar name at the beginning of profile.  It would then
>> be a simple matter to later add the Windows path where appropriate, but I don't
>> think the default path should have it at all.
>> Also, there are two things in profile that may admit slight improvement (a place
>> where LC_COLLATE is specified just for one command and better guarding against a
>> missing or non-cdable /etc/skel).
> 
> All three changes will be available in the next release (profile_d
> modification taken from your last version in this thread).

Are you sure that's actually a good idea? I don't agree with this logic:

>> I'm removing the Windows PATH in my startup scripts since there's
nothing in
>> there that I think should be accessible from Cygwin.

People execute Windows programs using Cygwin all the time. With this
change, basic things like "cmd" and "notepad" will fail to work.
Working with Windows programs is the *point* of Cygwin. I really don't
think this change should go into the default startup scripts.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 235 bytes --]

  parent reply	other threads:[~2012-08-22 20:14 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-21 15:03 /etc/profile Achim Gratz
2012-08-21 15:35 ` /etc/profile Eric Blake
2012-08-21 15:57   ` /etc/profile Achim Gratz
2012-08-21 16:11     ` /etc/profile James Johnston
2012-08-21 16:50     ` /etc/profile Eric Blake
2012-08-21 17:21       ` /etc/profile Achim Gratz
2012-08-21 19:27         ` /etc/profile Eric Blake
2012-08-21 20:48           ` /etc/profile Achim Gratz
2012-08-21 17:24     ` /etc/profile Earnie Boyd
2012-08-22 19:42 ` /etc/profile David Sastre Medina
2012-08-22 20:10   ` /etc/profile Achim Gratz
2012-08-22 20:15     ` /etc/profile David Sastre Medina
2012-08-22 20:50       ` /etc/profile Achim Gratz
2012-08-25 15:45       ` /etc/profile Achim Gratz
2012-08-25 21:26         ` /etc/profile Achim Gratz
2012-08-22 20:36   ` Daniel Colascione [this message]
2012-08-22 20:51     ` /etc/profile Achim Gratz
2012-08-22 20:55       ` /etc/profile Christopher Faylor
2012-08-22 21:18         ` /etc/profile Achim Gratz
2012-08-23  6:35           ` /etc/profile Andrew DeFaria
2012-08-22 20:55       ` /etc/profile Andrey Repin
2012-08-22 22:52         ` /etc/profile Achim Gratz
2012-08-22 22:08     ` /etc/profile David Sastre Medina
2012-08-23  5:54       ` /etc/profile Christopher Faylor
2012-08-23  6:19         ` /etc/profile David Sastre Medina
2012-08-23 10:03         ` /etc/profile Achim Gratz
2012-08-23 10:29           ` /etc/profile L Anderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50353D71.9000306@dancol.org \
    --to=dancol@dancol.org \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).