NautilusScriptsHowto wiki page errors
David M. Carney
carney1979 at gmail.com
Mon Jan 10 10:34:53 UTC 2005
On Mon, 10 Jan 2005 21:09:28 +1100, Cameron Hutchison
<camh+ubuntu at xdna.net> wrote:
> On the wiki page NautilusScriptsHowto
> (http://www.ubuntulinux.org/wiki/NautilusScriptsHowto), some of the
> scripts are written as:
>
> for I in `echo $*` ...
>
> what is the point of using `echo $*` - would not just a $* on its own do
> the same thing?
>
> Then there's the fact that this will also not work with files with
> spaces in the filename.
>
> I would think that all occurrences of $* should be replaced with "$@".
>
> Am I missing something obvious (or maybe subtle)?
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
Thanks for pointing out the errors. Your timing is incredible.
The scripts in question (with errors) were written by me.
Some of the ideas for these scripts were taken from samples of similar
scripts in books. No mention was made that they would not work on
files with spaces in the filenames.
I have never tried them on files with filenames of more than one word
so the error was never discovered until I was trying (last night) to
write another script and I then discovered it wouldn't work on
filenames with more than one word.
I posted to this list and got a fix. I will probably (time permitting)
rewrite the scripts in question tonight, test them, then see about
getting the wiki updated.
David
--
Registered Linux User #297958
More information about the ubuntu-users
mailing list