Timeline for Obtain script current directory (so that I can do include files without relative paths and run the script from everywhere)
Current License: CC BY-SA 3.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 5, 2016 at 9:56 | history | edited | user3450548 | CC BY-SA 3.0 |
edited title
|
| Apr 1, 2016 at 0:06 | vote | accept | user3450548 | ||
| Mar 31, 2016 at 15:11 | review | Close votes | |||
| Mar 31, 2016 at 15:13 | |||||
| Mar 31, 2016 at 14:53 | comment | added | Dmitry Grigoryev | Possible duplicate of Refer to a file under the same directory of a script found in $PATH | |
| Mar 31, 2016 at 14:45 | comment | added | IMSoP | There's a highly-upvoted duplicate over on Stack Overflow (Stack Exchange really needs a mechanism for marking this cross-site!) stackoverflow.com/questions/59895/… | |
| Mar 31, 2016 at 11:24 | answer | added | Iñaki Murillo | timeline score: 12 | |
| Mar 31, 2016 at 10:12 | answer | added | Jay jargot | timeline score: 2 | |
| Mar 31, 2016 at 9:12 | answer | added | terdon♦ | timeline score: 16 | |
| Mar 31, 2016 at 9:11 | comment | added | Costas |
mydir='/home/bob/' If the script inside the $PATH you can call it just by name source config.sh
|
|
| Mar 31, 2016 at 9:11 | answer | added | user3450548 | timeline score: 10 | |
| Mar 31, 2016 at 9:09 | comment | added | Michael Homer | I don't see how the script you've posted can ever work. Providing real (minimal) code illustrating your issue is helpful. | |
| Mar 31, 2016 at 9:00 | history | asked | user3450548 | CC BY-SA 3.0 |