[Bug 717608] New: rename do not work as expected
https://bugzilla.novell.com/show_bug.cgi?id=717608 https://bugzilla.novell.com/show_bug.cgi?id=717608#c0 Summary: rename do not work as expected Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: Other OS/Version: SuSE Other Status: NEW Severity: Minor Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jdd@dodin.org QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2 on 11.4, the script: for I in *.jpg ; do rename ".jpg" "-$RANDOM.jpg" $I ; done works perfectly, adding a -random number before the "." of my photos on 12.1 (beta for now, I beleive), rename see the "-" as the beginning of an option. There is an easy workaround, when you understand that, it's adding "--" after rename. It may be a feature, but it breaks scripts and I spent several hours to find why I see no reason to have this, as the three rename parameters are mandatory, so if there are options, they have to be the 4th one, easy to detect Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=717608
https://bugzilla.novell.com/show_bug.cgi?id=717608#c1
--- Comment #1 from Jean-Daniel Dodin
https://bugzilla.novell.com/show_bug.cgi?id=717608
https://bugzilla.novell.com/show_bug.cgi?id=717608#c2
Karl Eichwalder
https://bugzilla.novell.com/show_bug.cgi?id=717608
https://bugzilla.novell.com/show_bug.cgi?id=717608#c3
--- Comment #3 from Jean-Daniel Dodin
https://bugzilla.novell.com/show_bug.cgi?id=717608
https://bugzilla.novell.com/show_bug.cgi?id=717608#c4
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=717608
https://bugzilla.novell.com/show_bug.cgi?id=717608#c5
Karl Eichwalder
https://bugzilla.novell.com/show_bug.cgi?id=717608
https://bugzilla.novell.com/show_bug.cgi?id=717608#c6
--- Comment #6 from Jean-Daniel Dodin
https://bugzilla.novell.com/show_bug.cgi?id=717608
https://bugzilla.novell.com/show_bug.cgi?id=717608#c7
--- Comment #7 from Karl Eichwalder
that's perfect. Was it already in the man page? If so I have to apologize... not having seen it!
No ;) This is what I intend to put into the release notes for 12.1. If we want to see it in the rename man page, we must probably create a separate bug entry or clone this one and assign it the the util-linux package maintainer. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=717608
https://bugzilla.novell.com/show_bug.cgi?id=717608#c8
--- Comment #8 from Jean-Daniel Dodin
https://bugzilla.novell.com/show_bug.cgi?id=717608
https://bugzilla.novell.com/show_bug.cgi?id=717608#c9
Karl Eichwalder
participants (1)
-
bugzilla_noreply@novell.com