[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 110: Undefined array key "cached"
[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 111: Undefined array key "normal"
[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 112: Undefined array key "total"
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3391: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3393: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3394: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3395: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
Cabrillo College Linux Classes • View topic - stupid mistake again. don't leave a space after "=".

stupid mistake again. don't leave a space after "=".

Emergency forum when Opus is down

stupid mistake again. don't leave a space after "=".

Postby Imara Dharmakirthi on Sun Dec 01, 2013 10:36 am

do anyone know, why this does not work
r1= $(($((RANDOM%10))+ $((RANDOM%10))))

& I tried this to,
r1= $(("$((RANDOM%10)) + $((RANDOM%10))"))


error massage is
./myscript: line 44: let: r1=: syntax error: operand expected (error token is "= ") :oops: :oops: :oops:

but, when i do

echo $(($((RANDOM%10))+ $((RANDOM%10))))
works

it took one day to Figure that out. :mrgreen:
Imara Dharmakirthi
 
Posts: 1
Joined: Sun Dec 01, 2013 10:29 am

Re: stupid mistake again. don't leave a space after "=".

Postby Rich Simms on Sun Dec 01, 2013 6:05 pm

I bet you won't make that mistake again!

- Rich
User avatar
Rich Simms
Site Admin
 
Posts: 640
Joined: Thu May 15, 2008 2:44 pm


Return to Temporary CIS 90 - Fall 2013

Who is online

Users browsing this forum: No registered users and 0 guests

cron