Shell read-only variable

test.sh:

#!/bin/bash

myUrl
="http://www.google.com span>"
readonly myUrl
myUrl
="http://www.runoob.com span>"

Output

bogon:Desktop macname $ ./test.sh

.
/test.sh: line 4: myUrl: readonly span> variable

Reference:

https://www.runoob.com/linux/linux-shell-variable.html< /p>

#!/bin/bash

myUrl
="http://www.google.com span>"
readonly myUrl
myUrl
="http://www.runoob.com span>"

bogon:Desktop macname$ ./test.sh

.
/test.sh: line 4: myUrl: readonly span> variable

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5499 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.