[Bug 95519] Re: Nautilus-scripts don't handle blanks in filenames properly

2010-09-15 Thread Bug Watch Updater
** Changed in: nautilus
   Importance: Unknown = Low

-- 
Nautilus-scripts don't handle blanks in filenames properly
https://bugs.launchpad.net/bugs/95519
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 95519] Re: Nautilus-scripts don't handle blanks in filenames properly

2010-04-29 Thread harm
Sorry for digging up an old thread here but I see this as a bug.
Reece has a point there, the paths are seporated by new line not a good idea if 
that's a valid character for directory or file name. If this is fixed with 
the \0 seporator than all scripts depending on \n would be broken.

if Doug would echo the variable with the -e option it would come out ok.

I had made a script checking the variable but just dumped env (env 
~/myvars.txt)

Just posted here to get an email update so I know when and if this is
fixed to update my scripts.

By the way I am using jaunty (or mint 8) Nautilus 2.28.1

-- 
Nautilus-scripts don't handle blanks in filenames properly
https://bugs.launchpad.net/bugs/95519
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 95519] Re: Nautilus-scripts don't handle blanks in filenames properly

2008-08-30 Thread Reece
One way to solve your problem is to set IFS to explicitly cause files to
be split on newlines, as below. For an explanation of how this works,
see the bash man page. Similar functionality exists in sh and zsh (and
probably the csh-derived shells as well).

#!/bin/bash
IFS=$'\n'
for file in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
do
 zenity --info --text $(md5sum $file)
done

Although quoting in shell scripts is frustrating and obtuse, the
behavior you experienced is not a bug. I recommend closing as not-a-bug.

The only misfeature here is that \n is technically legal in filenames;
\0 would have been preferable.


I can't resist. Here's a great way to impress people at dinner parties and wow 
chicks:
#!/bin/bash
IFS=$'\n'
zenity --list --column md5 --column file $(find 
${NAUTILUS_SCRIPT_SELECTED_FILE_PATHS} -type f -print0 | xargs -0r md5sum | 
perl -pe 's/^(\S+)\s\s/$1\n/')

-Reece

-- 
Nautilus-scripts don't handle blanks in filenames properly
https://bugs.launchpad.net/bugs/95519
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 95519] Re: Nautilus-scripts don't handle blanks in filenames properly

2008-07-28 Thread Sebastien Bacher
the code is opensource you can work yourself on the required changes if
you really need those, there is just too many bugs to work on everything
and this one is not a high priority one for most users

-- 
Nautilus-scripts don't handle blanks in filenames properly
https://bugs.launchpad.net/bugs/95519
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 95519] Re: Nautilus-scripts don't handle blanks in filenames properly

2008-07-27 Thread Leolik
this bug - still reproduce in hardy ((
please fix this bug

-- 
Nautilus-scripts don't handle blanks in filenames properly
https://bugs.launchpad.net/bugs/95519
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 95519] Re: Nautilus-scripts don't handle blanks in filenames properly

2008-06-25 Thread Sebastien Bacher
could you try if that's still an issue in hardy?

** Changed in: nautilus (Ubuntu)
   Status: Confirmed = Triaged

-- 
Nautilus-scripts don't handle blanks in filenames properly
https://bugs.launchpad.net/bugs/95519
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 95519] Re: Nautilus-scripts don't handle blanks in filenames properly

2008-06-25 Thread Stefan Wagner
I'm using xfce/xubuntu with Thunar - well - with midnight commander, to ... - 
Wait! 
Yes, nautilus is installed.

Creating the script, moving it to place, testing: Still failing with
file x but working else.

-- 
Nautilus-scripts don't handle blanks in filenames properly
https://bugs.launchpad.net/bugs/95519
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 95519] Re: Nautilus-scripts don't handle blanks in filenames properly

2008-05-03 Thread Doug McNutt
Content of $HOME/.gnome2/nautilus-scripts/expose
#!/bin/tcsh
set report = $HOME/expose.txt
echo   $report
date  $report
echo Arg1 is $1  $report
echo Arg2 is $2  $report
echo Arg3 is $3  $report
echo NAUTILUS_SCRIPT_SELECTED_FILE_PATHS  $report
echo $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS  $report
echo NAUTILUS_SCRIPT_SELECTED_URIS  $report
echo $NAUTILUS_SCRIPT_SELECTED_URIS  $report
echo NAUTILUS_SCRIPT_WINDOW_GEOMETRY  $report
echo $NAUTILUS_SCRIPT_WINDOW_GEOMETRY  $report
echo NAUTILUS_SCRIPT_CURRENT_URI  $report
echo $NAUTILUS_SCRIPT_CURRENT_URI --   $report

I have selected three files in my home directory
space\ space
space2\ \ space2
ScratchPad

This is the result of choosing scripts_expose with the right mouse
button:

Sat May  3 19:56:56 MDT 2008
Arg1 is ScratchPad
Arg2 is space2  space2
Arg3 is space space
NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
/home/doug/ScratchPad  /home/doug/space2 space2  /home/doug/space space 
NAUTILUS_SCRIPT_SELECTED_URIS
file:///home/doug/ScratchPad  file:///home/doug/space2%20%20space2  
file:///home/doug/space%20space 
NAUTILUS_SCRIPT_WINDOW_GEOMETRY
847x753+767+72
NAUTILUS_SCRIPT_CURRENT_URI

Note that the arguments are correct.
Note that the selected URI's properly show the URL-encoded double space in the 
file name.
Note that the file paths have truncated the double space into a single space.

The only document I have is Ubuntu Hacks, O'Reilly, June 2006 which clearly 
says the files and URIs are new-line delimited in Hack 24.
It appears that the current rule is to use a double space.

-- 
Nautilus-scripts don't handle blanks in filenames properly
https://bugs.launchpad.net/bugs/95519
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 95519] Re: Nautilus-scripts don't handle blanks in filenames properly

2007-03-30 Thread Sebastien Bacher
Thanks for your bug report. This bug has been reported to the developers
of the software. You can track it and make comments here:
http://bugzilla.gnome.org/show_bug.cgi?id=424606

** Changed in: nautilus (Ubuntu)
   Importance: Undecided = Low
 Assignee: (unassigned) = Ubuntu Desktop Bugs
   Status: Unconfirmed = Confirmed

** Bug watch added: GNOME Bug Tracker #424606
   http://bugzilla.gnome.org/show_bug.cgi?id=424606

** Also affects: nautilus (upstream) via
   http://bugzilla.gnome.org/show_bug.cgi?id=424606
   Importance: Unknown
   Status: Unknown

-- 
Nautilus-scripts don't handle blanks in filenames properly
https://launchpad.net/bugs/95519

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 95519] Re: Nautilus-scripts don't handle blanks in filenames properly

2007-03-30 Thread Bug Watch Updater
** Changed in: nautilus (upstream)
   Status: Unknown = Unconfirmed

-- 
Nautilus-scripts don't handle blanks in filenames properly
https://launchpad.net/bugs/95519

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs