Search Results

Search: Posts Made By: Al262
8,560
Posted By Al262
Exactly what I am looking for. However, the...
Exactly what I am looking for. However, the scripts are not running ksh93. I did run through a test cycle here on AIX 5.3, the results are below.

/test> cat a.sh
#!/bin/ksh93
echo "a: $0"...
8,560
Posted By Al262
The script is untouched as it migrates throught...
The script is untouched as it migrates throught the life cycle regions with various file sub-systems, such as /common/dev, /common/test, and so on. Specific applications /app1 or /app2 will be...
8,560
Posted By Al262
RE: KSH - Sourced file location
Understand it completely.

Again, I was looking (hoping) for a $0 equivalent for the sourced file. I realize the $0 is the invoked script.

Thanks for the reponses, hopefully someone will...
8,560
Posted By Al262
RE: KSH - Sourced file location
Not really much help. The link tried to provide workarounds rather than answering the question. There are times when inside the script, it doesn't know what directory it is in. Seems like a $0...
8,560
Posted By Al262
RE: KSH - Sourced file location
Thanks for the response, but as you indicate at the end of your post, it only works when a and b are in the same directory. My useCase has to address the notion that a is in a different directory...
8,560
Posted By Al262
KSH - Sourced file location
The sample scripts below, I am looking for the location of the sourced b.sh file. The b.sh file is source by multiple files, so it is not feasible to rely on a "global" variable or passed argument. ...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 01:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy