Timeline for How do I get the directory where a Bash script is located from within the script itself?
Current License: CC BY-SA 4.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 20, 2021 at 2:43 | history | edited | Peter Mortensen | CC BY-SA 4.0 |
Active reading [<https://en.wikipedia.org/wiki/Bash_%28Unix_shell%29>].
|
| May 15, 2020 at 0:36 | history | edited | the Tin Man | CC BY-SA 4.0 |
edited for readability
|
| Jun 9, 2014 at 3:42 | comment | added | Charles Duffy |
"Always"? Not at all. which being an external tool, you have no reason to believe it behaves identically to the parent shell.
|
|
| Jan 13, 2014 at 22:30 | comment | added | Reinstate Monica Please |
The point on which is very debatable. type, hash, and other builtins do the same thing better in bash. which is kindof more portable, though it really isn't the same which used in other shells like tcsh, that has it as a builtin.
|
|
| Mar 23, 2011 at 20:06 | history | made wiki | Post Made Community Wiki | ||
| Sep 3, 2010 at 6:44 | history | edited | Matt Tardiff | CC BY-SA 2.5 |
Made quoting more robust.
|
| Jan 20, 2009 at 17:39 | history | edited | Diodeus - James MacFarlane | CC BY-SA 2.5 |
it's = its
|
| Oct 23, 2008 at 20:04 | history | edited | Matt Tardiff | CC BY-SA 2.5 |
added 12 characters in body
|
| Oct 15, 2008 at 16:16 | history | edited | Matt Tardiff | CC BY-SA 2.5 |
deleted 6 characters in body
|
| Oct 14, 2008 at 16:39 | history | answered | Matt Tardiff | CC BY-SA 2.5 |