From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mr3.vodafonemail.de (mr3.vodafonemail.de [145.253.228.163]) by sourceware.org (Postfix) with ESMTPS id 465C63858D28 for ; Sat, 5 Feb 2022 07:02:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 465C63858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=nexgo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nexgo.de Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr3.vodafonemail.de (Postfix) with ESMTPS id 4JrNdh742Jz29Zv for ; Sat, 5 Feb 2022 07:02:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexgo.de; s=vfde-smtpout-mb-15sep; t=1644044569; bh=IJqpa1HGiW0KkeWRY8QRmSSD8kMlbBMp8SsZHRM92a8=; h=From:To:Subject:Date:Message-ID:User-Agent:Content-Type:From; b=O6CelpxukEKz0xraacd6YzQm98YLa7gdjjoxCfZ8RJHoehAwpANIK+MRsYncmpNlE RgTZYUr57+i9iAIz/bt8SMGjMeRLPfS9c9hKYGbrYNxSlLb11iW4y4II7p6sho27dH U5mNtlnYrv4xPm2sX0nTzEE6P7PIBdd98aDsxv+8= Received: from Gertrud (p5b2f3a9b.dip0.t-ipconnect.de [91.47.58.155]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4JrNdh161Mz9rys for ; Sat, 5 Feb 2022 07:02:44 +0000 (UTC) From: Achim Gratz To: cygwin-apps@cygwin.com Subject: tcsh /etc/default files Date: Sat, 05 Feb 2022 08:02:27 +0100 Message-ID: <87bkzlzth8.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 2019 X-purgate-ID: 155817::1644044568-00000456-F38D0625/0/0 X-Spam-Status: No, score=-3029.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin-apps@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin package maintainer discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2022 07:02:52 -0000 I'm not certain if I ever discussed this before, but the recent tcsh update reminded me that I think the defaults should be changed a little bit. First off, running the scripts in profile.d should IMHO be done in csh.login to ensure it's only done once. Secondly the (optional) cleaning up of the PATH variable already introduced for all POSIX shells in base-files years ago should be replicated for tcsh. Lastly, since /usr/bin/ and /bin are the same thing on Cygwin, one of them is redundant and placement of /usr/local/bin should be left at the discretion of the user since tha directory does not exist by default on Cygwin. --8<---------------cut here---------------start------------->8--- --- /etc/defaults/etc/csh.cshrc 2022-02-03 18:25:13.000000000 +0100 +++ /etc/csh.cshrc 2019-06-02 19:07:20.072715800 +0200 @@ -3,16 +3,6 @@ # onintr - -if ( -d /etc/profile.d ) then - set nonomatch - foreach _s ( /etc/profile.d/*.csh ) - if ( -r $_s ) then - source $_s - endif - end - unset _s nonomatch -endif - if (! ${?prompt}) goto end # This is an interactive session --- /etc/defaults/etc/csh.login 2022-02-03 18:25:13.000000000 +0100 +++ /etc/csh.login 2019-06-02 19:07:19.229253700 +0200 @@ -4,7 +4,21 @@ unsetenv TEMP unsetenv TMP -set path=( /usr/local/bin /usr/bin /bin $path:q ) +set winpath = ( $path:q ) +if ( ${?CYGWIN_NOWINPATH} ) then + set path=( /usr/bin ) +else + set path=( /usr/bin $path:q ) +endif +if ( -d /etc/profile.d ) then + set nonomatch + foreach _s ( /etc/profile.d/*.csh ) + if ( -r $_s ) then + source $_s + endif + end + unset _s nonomatch +endif if ( ! ${?USER} ) then set user="`id -un`" --8<---------------cut here---------------end--------------->8--- Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds