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=CP5y2Nv2OQTNlBBkFegeKb8LcK8bv ObqgbISytlJRz9w7F0OG/zRy7/dxN7z3iiujxpXrDiENVLW6NZQ2+fOA1rYsEg+R sm5+ov3xoodF3MLBzfoF2EWqxMEaSQsevmQpbPTodDbQyeMjGC2OCIqSGsC7mgx3 ZJt7FwOx5Hwom4= 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=G92G6xFax2niKMSDlZ6/tAIT81g=; b=As9 RyIY85GaB3iMJDkIlJFMp1zEwoHIbSresA3zJXgZSgVVg+HIE+Bwibw0yYBuOKqV YXgTkaE/xK0DeCeS+ZPsfFg/3id0iCv2szfJCPViO5ADMkD4we9M3yis2iGInun/ yjouvU4kF+odlfLI0TvwnYHEQxoD0aSs5/2cvYaE= 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.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f48.google.com MIME-Version: 1.0 X-Received: by 10.194.89.168 with SMTP id bp8mr39365704wjb.53.1409668995915; Tue, 02 Sep 2014 07:43:15 -0700 (PDT) Date: Tue, 2 Sep 2014 10:43:15 -0400 Message-ID: Subject: 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 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 Usage: rename [options] expression replacement file... Options: -v, --verbose explain what is being done -V, --version output version information and exit -h, --help display this help and exit escaping dash with backslash doesn't work either. this used to work in a MUCH older version of cygwin. I tried to get a newer version in util-linux to compile but ran into a lot of troubles. i also saw some notes that some cyg-specific items were removed from newer util-linux which is why maybe it hasn't been upgraded? also of note is rename works fine in redhat5/6 because they use util-linux-ng $ uname -a CYGWIN_NT-6.1 frog2 1.7.30(0.272/5/3) 2014-05-23 10:36 x86_64 Cygwin $ rename -V rename from util-linux 2.21.2 I had to write a cheap sed script to get me by for now but it isn't very robust, but does what I need it to -- "Ethics cannot spring from laws as you think, Moral is something you feel" - Anders Osborne -- 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