[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 "=".
Page 1 of 1

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

PostPosted: Sun Dec 01, 2013 10:36 am
by Imara Dharmakirthi
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:

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

PostPosted: Sun Dec 01, 2013 6:05 pm
by Rich Simms
I bet you won't make that mistake again!

- Rich