[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 - Ubuntu does not like ****
Page 1 of 1

Ubuntu does not like ****

PostPosted: Thu Dec 11, 2008 9:02 am
by ollie wright
When I run myscript on Ubuntu I get error messages for all the lines that only have **** .
Do I have to put a # in front of these, or is there a setup/preferences I can change?

Re: Ubuntu does not like ****

PostPosted: Fri Dec 12, 2008 10:08 am
by Rich Simms
Hi Ollie,

bash will treat each * as an expansion character. **** will match all the files in your directory. You will of course get different results depending what directory you are in.

If you echo **** you will see the command bash is trying to execute. Hopefully you don't have a file named rm and all your other files in the directory named with a letter that follows r in the alphabet!

[code][rsimms@opus test]$ ls
cat words
[rsimms@opus test]$ cat words
Oops
[rsimms@opus test]$ echo *
cat words
[rsimms@opus test]$ echo ****
cat words
[rsimms@opus test]$ ****
Oops
[rsimms@opus test]$
[/code]
- Rich