Afficher un message
Vieux 21/08/2006, 17h08   #4
Michal Nazarewicz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: quoting pathnames with spaces

Charles Russell <SPAMworFREEwor@bellsouth.net> writes:

> Michal Nazarewicz wrote:
>> It would be definitly more complicated then typing cp file "$WPATH".
>>

> But I would only have to do it once. And I could use it as
> a prototype the next time I had the problem.


You'll have to write something like:

cp file $(escape $VARIABLE)

anyways and still I dunno if that would work. Or you'll have to create
houndreads of functions like:

cp_FOO () { cp -- "$1" "$FOO"; }
mv_FOO () { mv -- "$1" "$FOO"; }
cp_BAR () { cp -- "$1" "$BAR"; }
mv_BAR () { mv -- "$1" "$BAR"; }
something_baz () { something -- "$1" "$BAZ"; }

I don't think it's worth it.

--
Best regards, _ _
.o. | Liege of Serenly Enlightened Majesty of o' \,=./ `o
..o | Computer Science, Michal "mina86" Nazarewicz (o o)
ooo +--<mina86*tlen.pl>--<jid:mina86*jabber.org>--ooO--(_)--Ooo--
  Réponse avec citation
 
Page generated in 0,12494 seconds with 9 queries