Re: Special parameter $_ expands to a relative path

2011-09-01 Thread Angel Tsankov
On 09/01/11 15:11, Greg Wooledge wrote: On Thu, Sep 01, 2011 at 01:15:34AM -0800, Roger wrote: [...] The original poster may be interested in this page: http://mywiki.wooledge.org/BashFAQ/028 -- How do I determine the location of my script? I want to read some config files from the same place

Re: Special parameter $_ expands to a relative path

2011-09-01 Thread Greg Wooledge
On Thu, Sep 01, 2011 at 01:15:34AM -0800, Roger wrote: > MAILPATH > A colon-separated list of file names to be checked for mail. > The message to be printed when mail arrives in a particular file > may be specified by separating the file name from the message > with

Re: Special parameter $_ expands to a relative path

2011-09-01 Thread Roger
> On Thu, Sep 01, 2011 at 09:35:14AM +0300, Angel Tsankov wrote: >Hello, > >The Bash Reference Manual >(http://www.gnu.org/s/bash/manual/bash.html#Special-Parameters) says: > >At shell startup, [$_ is] set to the absolute pathname used to invoke >the shell or shell script being executed as passed

Special parameter $_ expands to a relative path

2011-08-31 Thread Angel Tsankov
Hello, The Bash Reference Manual (http://www.gnu.org/s/bash/manual/bash.html#Special-Parameters) says: At shell startup, [$_ is] set to the absolute pathname used to invoke the shell or shell script being executed as passed in the environment or argument list. [...] However, with GNU bash,