Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Tue, 11 May 2004 18:22:51 +0900 (JST) Message-Id: <20040511.182251.39812848.gotoh@taiyo.co.jp> To: cygwin AT cygwin DOT com Subject: Re: rsh, strange command line parsing From: Shun-ichi GOTO In-Reply-To: <20040511083330.GB12030@cygbert.vinschen.de> References: <20040511 DOT 132145 DOT 27806189 DOT gotoh AT taiyo DOT co DOT jp> <20040511083330 DOT GB12030 AT cygbert DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Hi, >>>>> On Tue, 11 May 2004 10:33:30 +0200, Corinna Vinschen wrote, > rsh is using getopt_long for option processing. The old versions had it > statically linked in while newer versions are using the getopt_long built > into Cygwin. By default, Cygwin's getopt_long has argument permutation > switched oon, so that explains it. For now, add the environment variable > POSIXLY_CORRECT before calling rsh or, even simpler, quote the remote > command: > > rsh server 'ls -a' I understand. I tried setting environment variable and rsh works correctly. It may be helpfull to make workaround-wrapper-script use with rsync. > The next version of inetutils will have argument permutation switched > off for short option processing. Since using rsh is not so often and old version of rsh works on cygwin 1.5.9, I use old one temporarily and wait for next version of inetutils (1.3.2-29 ?). Thanks again. --- Regards, Shun-ichi Goto R&D Group, TAIYO Corp., Tokyo, JAPAN -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/