The $_ bash special parameter
I've 2 questions regarding the way the $_ bash special parameter works. According to the bash man page:
Quote:
Code:
$ cat my_script However, if we don't supply a shell script as the argument to bash, my output will be different, depending on whether the shell is a login shell or not: Code:
$ bash #non-login 2. Could you give me an example of the situation this quote refers to? Quote:
|
Quote:
Code:
~$ bash <scriptname>.bash Second thing, a shell script will follow it's execution path according to the shebang mentioned in it, that is:- Code:
#!/bin/bash On the other hand, invoking a script like: Code:
~$ ./<scriptname>.bash Well, your question is little confusing to me, so be little specific and beiefly mention that what exactly you want to understand. |
Quote:
Code:
$ bash #non-login |
Quote:
Code:
~/tmp$ /bin/bash Quote:
|
All times are GMT -5. The time now is 07:55 AM. |