Is there a problem with naming a bash script file "script"? I'm using Fedora 11.

Michael


[mich...@localhost ~]$ bash --version
GNU bash, version 4.0.23(1)-release (i386-redhat-linux-gnu)


[mich...@localhost ~]$ cat ./bin/temp
#!/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 ~]$ temp
The date today is Fri Jul 24 22:03:59 EDT 2009
Your shell is /bin/bash
Your home directory is /home/michael
The processes running on your system are shown below:
  PID TTY          TIME CMD
 3026 pts/1    00:00:00 bash
 3057 pts/1    00:00:00 temp
 3059 pts/1    00:00:00 ps
[mich...@localhost ~]$ mv ./bin/temp ./bin/script
[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
[mich...@localhost ~]$ 





Reply via email to