X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; q=dns; s=default; b=DgDCtI127sGYDK5vI/zMAM5WVFUzg dYFdTEYl8dbSC07XPL84ryqRTfwJWwwkpS/UN6r7vOXfmnTel7sLgt1xtDH3iiAS 1iNbnx+pUYKRi7bWABsEHp32Y9g2OkV+YXdJs219QzglpBEgttzfHuuz+9GosEXL Hq/fKRz+hxD5/g= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; s=default; bh=1VEHEB45WNNMXR0sEeSi1MCrSFc=; b=dbw XWxAi9+LXER8Ewy0eE3UwcgDUL5iMSZNWZpZzl9rLmXJmq+pFDAQrMN5gTV4wlRH jYGPLJ+1RzY6e1JJJQr/U2Fs3HPz3zV2DS/jWDqP9ww449V6t1I3Umu0y7tnPBrR 6b961y+xzZ9QnW9P5+wziGX5mOUfVs82N+8uGm88= 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_05,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f173.google.com MIME-Version: 1.0 X-Received: by 10.194.78.4 with SMTP id x4mr155448wjw.44.1409779054652; Wed, 03 Sep 2014 14:17:34 -0700 (PDT) Date: Wed, 3 Sep 2014 17:17:34 -0400 Message-ID: Subject: Re: cygwin rename util doesn't parse leading dash in expression argument correctly (thinks it is an option) From: Dat Head To: The Cygwin Mailing List Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes On Tue, Sep 2, 2014 at 10:57 AM, Marco Atzeri wrote: > On 02/09/2014 16:43, Dat Head wrote: >> >> Cygwin 1.7.30-1 >> >> $ ls -l *-fixed.flac >> -rw-r--r-- 1 foo None 0 Sep 1 13:47 a-fixed.flac >> -rw-r--r-- 1 foo None 0 Sep 1 13:47 b-fixed.flac >> >> $ rename '-fixed' '' *-fixed.flac >> rename: unknown option -- f > > > you need to tell rename that the options are ended with -- > > $ rename -- '-fixed' '' *-fixed.flac > > $ ls *flac > a.flac b.flac thanx for the tip, haven't had to use that since old days of "startx clientopts -- serveropts &" but yet again I'm roped with having to wrap another case statement around pieces of scripts for cygwin specific items (because the same syntax of "rename --" doesn't work on redhat linux or another distro a friend tried for me) i'm not complaining, i love cygwin! that is a quite old version of util-linux I wonder does anyone know the factors involved in staying with that one? (everything else is mostly so wonderfully almost bleeding edge [which I like!]) -- 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