*BSD News Article 91595


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!solace!not-for-mail
From: Johan Lithander <johan@teligent.se>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: 2.2-RELEASE problem (simple)
Date: Fri, 21 Mar 1997 09:52:57 +0100
Organization: Teligent AB
Lines: 63
Message-ID: <33324C69.41C67EA6@teligent.se>
References: <5grof3$138@bignews.shef.ac.uk>
NNTP-Posting-Host: gollum.teligent.se
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01 (X11; I; FreeBSD 2.1.0-RELEASE i386)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37434

If You check /bin You will se that there is a "program" called test.
Execute man test.

When You tried to execute Your test program, You didn't write ./test
which means execute test program in current directory.
In Your case the shell executed /bin/test instead of Your program.

You can add "current directory" to Your PATH environment variable:
PATH=.:$PATH
In this case the current directory will be "checked" first for the
executable program that You entered at the prompt.

Check out the man page for Your shell, it will explain the PATH
variable.
 
Johan :-)=-

C Lamb wrote:
> 
> Hi,
> I have been using IRIX and SUNOS/Solaris for a very long time
> purely as a ordinary user, little/no experience as sysadmin etc...
> After building my new PC (AMD DX4-133 16M 814M HD) I thought
> FreeBSD would be ideal as an OS. I installed just the bin set
> and was =very= impressed with the result. Just a few problems that
> I hope you can help with.
> 
> $ cat test.c
> #include <stdio.h>
> 
> int main(argc,argv)
> int argc;
> char **argv;
>         {
>         printf("hello, world\n");
>         return(0);
>         }
> $ gcc -o test test.c
> $ test
> $
> 
> yep, it prints nothing...
> Can anyone help? It seems as if stdout isn't being used.
> 
> b) how to change keyboard settings, the mappings seem a bit pear shaped
>    for non-alphanumerics (dollar/pound/hash/pipe etc)
> 
> I would like to re-iterate that 2.2-RELEASE is very easy and straight-
> forward for the novice to install (I am that novice!) so a big pat on
> the back for all concerned with the development.
> 
> yours
> Chris Lamb

-- 
----------------------------------------------------------------
Johan Lithander			Teligent AB
Phone:	+46 8 4480626		P.O. Box 10077
Mobile:	+46 70 5573624		S-121 27 Stockholm-Globen
Fax:	+46 8 6496321		Sweden
e-mail:	johan@teligent.se	Visiting address: Palmfeltsv. 5B
www:	http://www.teligent.se
----------------------------------------------------------------