On Fri, Jul 24, 2009 at 07:36:31PM -0700, michael rice wrote:
> Is there a problem with naming a bash script file "script"? I'm using Fedora 
> 11.
> 
> ...
> [mich...@localhost ~]$ cat ./bin/script
> #!/bin/bash
> # Sample shell script
> echo "The date today is `date`"
> echo Your shell is $SHELL
> echo Your home directory is $HOME
> echo The processes running on your system are shown below:
> ps
> 
> [mich...@localhost ~]$ script
> Script started, file is typescript

The "which" command is useful to see how a command will be resolved.  If 
you type:

    which script

you'll likely see something other than what you're expecting.

Ken

-- 
Ken Irving, fn...@uaf.edu
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


Reply via email to