Ciao,

Il Ven, 18 Novembre 2011 10:03 am, Paolo Sala ha scritto:
>> #!/bin/sh
>>
>> test_dir="dir con spazi"
>> rm_dir=0
>> if [ ! -d "$test_dir" ]; then
>>     mkdir "$test_dir"
>>     [ $? -gt 0 ] && exit 1
>>     rm_dir=1
>> fi
>>
>> cmd="ls -la \"$test_dir\""
>> $cmd

cmd=ls
copt=-la
cpar=$test_dir
$cmd $copt "$cpar"

>> [ $rm_dir ] && rmdir "$test_dir"

Ok?

-- 
http://bodrato.it/


-- 
Per REVOCARE l'iscrizione alla lista, inviare un email a 
[email protected] con oggetto "unsubscribe". Per
problemi inviare un email in INGLESE a [email protected]

To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: 
http://lists.debian.org/[email protected]

Rispondere a