[9fans] rc and whitespaces

2014-11-26 Thread Steve Simon
rc using backquote to parse strings, e.g: hugo% s=`{echo a b c} hugo% echo $#s $s(1) 3 a This is fine hugo% s=`{echo 'a b' c} hugo% echo $#s $s(1) 3 a This is also fine, a b and c are just two fields when they enter echo but they leave the appear

Re: [9fans] rc and whitespaces

2014-11-26 Thread Friedrich Psiorz
That behaviour is what I would expect. rc splits text in `{} according to $ifs, which is usually space, tab, and newline. It doesn't treat any characters special, including quotes. Am 26.11.2014 um 14:02 schrieb Steve Simon: rc using backquote to parse strings, e.g: hugo% s=`{echo a b c}

Re: [9fans] rc and whitespaces

2014-11-26 Thread erik quanstrom
This is also fine, a b and c are just two fields when they enter echo but they leave the appear to be 3 seperate words. hugo% s=`{echo '''a b''' c} hugo% echo $#s $s(1) 3 'a This is disappointing, I was hoping that I would get 2 args and the first would be 'a b' (quotes

Re: [9fans] running plan9 : an ideal setup?

2014-11-26 Thread Mats Olsson
Hi dante! I copied your piclone script in Plan 9 but even though I've been digging I can't find out how to get the name of the SD card attached to the pi on which I want to clone my setup on. So, easily put, what command do I use to get to know that? So I wonder how to get the device name of the

Re: [9fans] running plan9 : an ideal setup?

2014-11-26 Thread Dante
Hi Mats, Look in the /dev directory (ls /dev). If you only have the boot device and an additional USB drive (in your case, an USB-to-SD adapter), the boot device shall be /dev/sdM0 and the USB/SD device shall be /dev/sdU0.0 Kind Regards, Dante On 26.11.2014 18:16, Mats Olsson wrote: Hi

Re: [9fans] running plan9 : an ideal setup?

2014-11-26 Thread Mats Olsson
Hi! So piclone sdU0.0 would be right? I have the script in /usr/glenda/home does that matter? Yours Sincerely, Mats 2014-11-26 18:41 GMT+01:00, Dante subscripti...@posteo.eu: Hi Mats, Look in the /dev directory (ls /dev). If you only have the boot device and an additional USB drive (in

Re: [9fans] running plan9 : an ideal setup?

2014-11-26 Thread Mats Olsson
Hi dante! In answer to my own question: DONE. Thanks a lot! Kind Greetings, Mats 2014-11-26 18:56 GMT+01:00, Mats Olsson plan9@gmail.com: Hi! So piclone sdU0.0 would be right? I have the script in /usr/glenda/home does that matter? Yours Sincerely, Mats 2014-11-26 18:41 GMT+01:00,

Re: [9fans] running plan9 : an ideal setup?

2014-11-26 Thread Dante
Cool, first tester :-). Thanks, Mats! -- Dante On 26.11.2014 19:16, Mats Olsson wrote: Hi dante! In answer to my own question: DONE. Thanks a lot! Kind Greetings, Mats 2014-11-26 18:56 GMT+01:00, Mats Olsson plan9@gmail.com: Hi! So piclone sdU0.0 would be right? I have the script in