Timeline for Is `-` used only with cd?
Current License: CC BY-SA 3.0
18 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 11, 2014 at 1:24 | vote | accept | Tim | ||
| Aug 3, 2014 at 14:29 | comment | added | abonet | Perhaps you're thinking of the '~-' feature of bash (which is interpreted as $OLDPWD). That can be used with 'ls' in the manner you describe. | |
| Aug 2, 2014 at 9:24 | answer | added | Chirag Bhatia - chirag64 | timeline score: 3 | |
| Jul 31, 2014 at 20:13 | answer | added | gacanepa | timeline score: 3 | |
| Jul 30, 2014 at 9:55 | history | tweeted | twitter.com/#!/StackUnix/status/494421078052462592 | ||
| Jul 29, 2014 at 0:49 | answer | added | Gilles 'SO- stop being evil' | timeline score: 24 | |
| Jul 28, 2014 at 21:59 | history | edited | Gilles 'SO- stop being evil' | edited tags | |
| Jul 28, 2014 at 19:35 | comment | added | fluffy | For some of the directory-handling builtins like pushd, yes. Otherwise, the meaning of "the previous directory" is not a terribly useful default. | |
| Jul 28, 2014 at 12:40 | comment | added | Tim | @fluffy: Are - used with other builtins in the same way? | |
| Jul 28, 2014 at 12:37 | comment | added | wim | I use all the time git checkout - to switch to the previous branch | |
| Jul 28, 2014 at 8:23 | comment | added | fluffy | Something to keep in mind is that cd is a builtin, not an external command (nor would it have any way of even working as one). cd - is thus a shell-level feature. | |
| S Jul 28, 2014 at 6:19 | history | suggested | Nidal | CC BY-SA 3.0 | remove thanks messages |
| Jul 28, 2014 at 5:47 | review | Suggested edits | |||
| S Jul 28, 2014 at 6:19 | |||||
| Jul 28, 2014 at 5:40 | answer | added | cuonglm | timeline score: 47 | |
| Jul 28, 2014 at 5:38 | answer | added | dotancohen | timeline score: 20 | |
| Jul 28, 2014 at 5:34 | answer | added | Michael Mrozek | timeline score: 20 | |
| Jul 28, 2014 at 5:34 | answer | added | Lawrence | timeline score: 37 | |
| Jul 28, 2014 at 5:28 | history | asked | Tim | CC BY-SA 3.0 |