LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-28-2005, 09:21 PM   #1
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
Path issue in Bash


This is probably something simple. I'm in the process of writing a simple script (my most complex one to date) and am having issues with the path. I can run my script directly, but I cannot get it to run from the $PATH. My script is located in ~/bin, and is currently titled "test". This is my console output (running SuSE 9.3):

Code:
~> which test
~> which bin/test
bin/test
~> which /home/user/bin/test
/home/user/bin/test
~> echo $PATH
/home/user/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin
As I said, it's probably a no-brainer. It's just got me stumped.
 
Old 08-28-2005, 09:55 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,132

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Is your script named test? If so, it's name conflicts with the already existent test command, and you should name it something else.
 
Old 08-28-2005, 10:18 PM   #3
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Original Poster
Rep: Reputation: 49
Thank you. Still took me a few minutes to figure it out. It's a bash built-in. I'll rename it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with finding path in bash script ylikone Linux - Software 1 08-02-2005 10:47 AM
PATH Issue Itsu Linux - Newbie 9 12-29-2004 05:47 PM
BASH search path problem neilcpp Programming 4 02-07-2004 02:04 PM
java path in bash matador Mandriva 2 12-03-2003 08:51 AM
Compiling Kernel (specifying Bash path) ugenn Linux - Software 5 04-02-2003 12:38 PM


All times are GMT -5. The time now is 04:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration