X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BF50E384A01A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ext.eeas.europa.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Panagiotis DOT KAVALAGIOS AT ext DOT eeas DOT europa DOT eu From: "KAVALAGIOS Panagiotis (EEAS-EXT)" To: "cygwin AT cygwin DOT com" Subject: RE: Limitation of setenv for tcsh: Too many arguments Thread-Topic: Limitation of setenv for tcsh: Too many arguments Thread-Index: AdblpVF/4EjvyaxZQDy6kgfzZaXMJwABSy/jAABYZ7A= Date: Fri, 8 Jan 2021 10:55:38 +0000 Message-ID: <63cabc18e6f845a7aaae49ce447cc152@BELBRU-EXMP101.eeas.europa.eu> References: <0d66260ff1314bf693caa6cbb6647547 AT BELBRU-EXMP101 DOT eeas DOT europa DOT eu> <871revlnmg DOT fsf AT Otto DOT invalid> In-Reply-To: <871revlnmg.fsf@Otto.invalid> Accept-Language: en-GB, el-GR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.51.5.118] MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737 definitions=2021-01-08_06:2021-01-07, 2021-01-08 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 bulkscore=0 impostorscore=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 malwarescore=0 mlxscore=0 spamscore=0 phishscore=0 priorityscore=1501 mlxlogscore=657 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101080061 X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" > -----Original Message----- > From: Cygwin On Behalf Of ASSI > Sent: 08 January 2021 11:39 > > KAVALAGIOS Panagiotis (EEAS-EXT) writes: > > There is a limitation for tcsh (setenv: Too many arguments) to set the > > PATH environmental variable as you can see in the attached file with > > the steps to reproduce it. It probably looks like tcsh limitation and > > not Cygwin. The "set path=( ${HOME}/bin $path)" is not complaining and > > sets the path, but it also interprets the space in the paths as a > > separator. The only Cygwin related issue is probably the /usr/bin that > > it is added twice. Any workarounds? > > Both problems are a failure on your part to quote the arguments correctly. > Consult the documentation for the respective shell to find enlightenment. Indeed, I forgot the double quotes. That works: setenv PATH "${HOME}/bin:${PATH}" I confused the message like a length limitation and not for the number of input arguments. Why do you say both? I don't add /usr/bin anywhere. > As an aside, it is highly unlikely that you'd actually want to set up your PATH > like that. Care to explain? How else can I add in the path custom personal commands? Panos Application Architect CONSULIAT (under contract with the EEAS) BA.BS.3.IS Office: EEAS B100 Floor 5 Area 048 Rue Belliard 100, 1000 Brussels Phone: +32 2 584 6017 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple