From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14064 invoked by alias); 31 Mar 2003 07:31:05 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 14057 invoked from network); 31 Mar 2003 07:31:04 -0000 Received: from unknown (HELO longlandclan.hopto.org) (202.47.55.78) by sources.redhat.com with SMTP; 31 Mar 2003 07:31:04 -0000 Received: (qmail 24477 invoked from network); 31 Mar 2003 07:30:24 -0000 Received: from unknown (HELO longlandclan.hopto.org) (192.168.0.1) by 192.168.5.1 with SMTP; 31 Mar 2003 07:30:24 -0000 Message-ID: <3E87EE8F.4070104@longlandclan.hopto.org> Date: Mon, 31 Mar 2003 08:09:00 -0000 From: Stuart Longland User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Arash Farmand CC: gcc-help@gcc.gnu.org Subject: Re: gcc References: In-Reply-To: X-Enigmail-Version: 0.72.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-03/txt/msg00338.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Matthieu Moy wrote: > You'd better use "Hello world!\n", because the IO are usually buffered > by your system, and will not appear until your process outputs a '\n'. All the \n does is outputs a new line, so rather than the program doing this: [someuser@aunixmachine ~] $ ./a.out Hello world![someuser@aunixmachine ~] $ _ it will put the newline on the end of the string, making it look like this: [someuser@aunixmachine ~] $ ./a.out Hello world! [someuser@aunixmachine ~] $ _ Not sure about it not appearing at all. I think it would appear when the program ends, but then again, I may be wrong. > > But the solution is to call ./a.out, or to add '.' to your $PATH > environment variable : > > PATH=${PATH}:. > export PATH > > using bash. (Type it once in every new shell, or put it in your > ~/.bashrc file.) > Actually, if you've got root access, you can add the following line to your /etc/profile, or as above, your ~/.bashrc file: export PATH="$PATH:." > > BTW, forget about kwrite : you should use Emacs or vi ;-) > Actually, gVim may not be such a bad idea. It's vi, but has a graphical frontend with menus, etc. Emacs, yeah, I've used it, not bad, but I've become a vim person myself. Also, there's PICO (a really basic editor), or Jed (quite a nice tool). Nothing wrong with kwrite, it isn't too bad to use. Basically, use anything you like, just make sure it spits the file out as plaintext (nothing like MS Word formatting characters to add to the compiller messages and mangle your code). - -- +-------------------------------------------------------------+ | Stuart Longland stuartl at longlandclan.hopto.org | | Brisbane Mesh Node: 719 http://stuartl.cjb.net/ | | I haven't lost my mind - it's backed up on a tape somewhere | | Griffith Student No: Course: Bachelor/IT @ Nathan | +-------------------------------------------------------------+ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1-nr1 (Windows 2000) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+h+6OIGJk7gLSDPcRAokfAJ4pUm501LEt1rls7xkjHsd7QWqxiQCdGho5 GUbrduHom4t3eemZ+LVGa8g= =ALjO -----END PGP SIGNATURE-----