Timeline for answer to Unix shell function for adding directories to PATH by jlliagre
Current License: CC BY-SA 4.0
Post Revisions
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 8, 2018 at 22:08 | comment | added | jlliagre | @TobySpeight Thanks for the edit and for teaching me how to use modal verbs! :-) | |
| Nov 8, 2018 at 21:38 | comment | added | Toby Speight | Yes, that's what I meant. But it looked like you were saying that it shouldn't be quoted. I think that's actually just a typo, and I've made an edit accordingly. (Sometimes in English, a single letter makes all the difference - e.g. "a few people" is very much more than "few people"!) | |
| Nov 8, 2018 at 21:37 | history | edited | Toby Speight | CC BY-SA 4.0 |
Fix typo that changed the meaning
|
| Nov 8, 2018 at 21:05 | comment | added | jlliagre |
@TobySpeight Okay, I misunderstood your comment. I just meant that the quotes were superfluous around front but were required around $2. You might indeed keep them around the former without breaking the script.
|
|
| Nov 8, 2018 at 20:53 | comment | added | jlliagre | @TobySpeight Not just a matter of style. Quotes are definitely required here to allow adding a path with an embedded space, or not to fail when passed an empty argument. | |
| Apr 28, 2015 at 17:07 | history | edited | user34073 | CC BY-SA 3.0 |
Fix grammar/typos
|
| Apr 28, 2015 at 17:02 | comment | added | jlliagre | @Sildoreth Indeed, I have added comments about it in my reply. | |
| Apr 28, 2015 at 17:01 | history | edited | jlliagre | CC BY-SA 3.0 |
added 607 characters in body
|
| Apr 28, 2015 at 16:51 | comment | added | Sildoreth |
It's not necessarily bad to add a non-existent directory to the PATH. For instance, say I always want to be able to run from ~/bin, and I have the exact same rc files on many machines (which is the case for me). There might be cases where the ~/bin directory doesn't exist yet. Then if I add it on one machine, I'd have to re-run my rc file to place that directory in the PATH.
|
|
| Apr 28, 2015 at 16:49 | review | First posts | |||
| Apr 28, 2015 at 16:50 | |||||
| Apr 28, 2015 at 16:46 | history | answered | jlliagre | CC BY-SA 3.0 |