GNOME Bugzilla – Bug 301164
Arguments are in reversed order
Last modified: 2005-07-07 10:20:04 UTC
Please describe the problem: I just noticed that the arguments sent to scripts invoked by Nautilus are in reversed order. Steps to reproduce: 1. Sort a directory for example by name 2. Select some files 3. Right click a file and start a script that prints out the arguments to a file Actual results: The file that is last in the sort order reaches the script as $1 and so on. Expected results: I expect the script to get the arguments in the same order as the sorting in Nautilus uses Does this happen every time? Yep. Other information: Adding the following to the beginning of my scripts (and using $files instead of $*) gets around this files= for i in $* ; do files="${i} ${files}" done
*** This bug has been marked as a duplicate of 308884 ***
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.