X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <33438483.post@talk.nabble.com> Date: Sun, 4 Mar 2012 06:55:12 -0800 (PST) From: sborer To: cygwin AT cygwin DOT com Subject: Weird behavior of tcsh.exe? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi, I'm not sure if this is a bug or some kind of feature, but it seems like the behavior of tcsh.exe somewhat depends on its file name. running the line: tcsh.exe -c 'echo "d:\a\b\c"' results in the output: "d". As if escaping of the argument occurred. if i copy tcsh.exe to a different name not starting with tcsh.exe, for example ntcsh.exe, then running: ntcsh.exe -c 'echo "d:\a\b\c"' results in the output: "d:\a\b\c" Is this intentional? (Are there inside the code of tcsh.exe some lines that actually check its filename and determine its behavior accordingly?) The reason this is important is that in older versions of cygwin, csh.exe was a copy of tcsh.exe, and now it seem to be a soft link to it. when it is a soft link, behavior or running scripts seem to be as if running them with tcsh.exe file name. before that the behavior was as if running it with a different name - csh.exe, and no escaping of parameters occurred. So this causes some incompatibilities.. (cygwin ver. 1.7.10, tcsh ver 6.18.00) -- View this message in context: http://old.nabble.com/Weird-behavior-of-tcsh.exe--tp33438483p33438483.html Sent from the Cygwin list mailing list archive at Nabble.com. -- 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