Annoying behavious of Nautilus when drag+drop as link
Mario Vukelic
mario.vukelic at dantian.org
Fri Jul 18 20:11:47 UTC 2008
On Fri, 2008-07-18 at 21:46 +0200, Loïc Grenié wrote:
> There are more system scripts than you'd think that barf on
> spaces. In addition by default xargs for instance takes spaces
> as filename separators and filenames with embedded spaces
> are a pain to manipulate with ssh/scp.
Thanks for the info. I am not a cmd line expert, but I find this a sad
state of affairs. I give you scp, but on first glance it seems that
there is little excuse not to handle spaces properly with xargs:
man xargs:
"OPTIONS
-0 Input items are terminated by a null character instead of by
whitespace, and the quotes and backslash are not special (every
character is taken literally).Disables the end of file string, which is
treated like any other argument. Useful when input items might contain
whitespace, quote marks, or backslashes. The GNU find -print0 option
produces input suitable for this mode.
<snip>
"EXAMPLES
find /tmp -name core -type f -print | xargs /bin/rm -f
Find files named core in or below the directory /tmp and delete them.
Note that this will work incorrectly if there are any filenames
containing newlines or spaces.
find /tmp -name core -type f -print0 | xargs -0 /bin/rm -f
Find files named core in or below the directory /tmp and delete them,
processing filenames in such a way that file or directory names
containing spaces or newlines are correctly handled."
More information about the ubuntu-users
mailing list