[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bash script file naming problem?
From: |
michael rice |
Subject: |
Bash script file naming problem? |
Date: |
Fri, 24 Jul 2009 19:36:31 -0700 (PDT) |
Is there a problem with naming a bash script file "script"? I'm using Fedora 11.
Michael
[michael@localhost ~]$ bash --version
GNU bash, version 4.0.23(1)-release (i386-redhat-linux-gnu)
[michael@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
[michael@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
[michael@localhost ~]$ mv ./bin/temp ./bin/script
[michael@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
[michael@localhost ~]$ script
Script started, file is typescript
[michael@localhost ~]$
- Bash script file naming problem?,
michael rice <=