[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash script file naming problem?
From: |
Dave B |
Subject: |
Re: Bash script file naming problem? |
Date: |
Sat, 25 Jul 2009 18:23:32 +0100 |
User-agent: |
KMail/1.9.10 |
On Saturday 25 July 2009, michael rice wrote:
> Is there a problem with naming a bash script file "script"? I'm using
> Fedora 11.
"script" is most likely the name of a command installed on your system (on
mine, it's /usr/bin/script). Try "man script" and see.
So if you really want to call your script "script", but you have to either
call it using its path (./bin/script in your example), or make sure that the
shell finds it before the system command for example by modifying PATH.
To be honest, I would just pick a different name for your script.
--
D.