Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-28-2005, 09:21 PM   #1
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):

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

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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
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.


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:33 PM.

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