[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 ****

Ubuntu does not like ****

Introduction to UNIX/Linux

Ubuntu does not like ****

Postby ollie wright on Thu Dec 11, 2008 9:02 am

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?
User avatar
ollie wright
 
Posts: 88
Joined: Wed Sep 03, 2008 7:28 pm

Re: Ubuntu does not like ****

Postby Rich Simms on Fri Dec 12, 2008 10:08 am

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
User avatar
Rich Simms
Site Admin
 
Posts: 640
Joined: Thu May 15, 2008 2:44 pm


Return to CIS 90 - Fall 2008

Who is online

Users browsing this forum: No registered users and 0 guests

cron