This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygwin rename util doesn't parse leading dash in expression argument correctly (thinks it is an option)
- From: Marco Atzeri <marco dot atzeri at gmail dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Tue, 02 Sep 2014 16:57:04 +0200
- Subject: Re: cygwin rename util doesn't parse leading dash in expression argument correctly (thinks it is an option)
- Authentication-results: sourceware.org; auth=none
- References: <CAMQzRBrsYe4BDijn=B2V6TkKt7Gv_ZqTEcWXmpaJ437A8ZgHYA at mail dot gmail dot com>
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
--
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