Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Uh. The fact that the shell serializes its history wherever is an implementation detail. If there is no way to: bring up the last commands used, sequentially, with a simple shortcut like "arrow up", and search for a given command like (like ctrl-r), that's a regression in usability compared to something like bash.


But we consider Bash an abomination. All the developers have been entirely free to build a new shell and that no-one has in 20 years of development by the cream of the Unix team and use by some excellent coders shows us that this is the way we want to work.

We have no need for command history. Mostly because we use better tools such as Sam and Acme to run arbitrary shell commands.

I shall repeat, like I end up doing on most plan9 threads, I have never had the need for command history in 15 years of using plan9. Ten years of that was full time software development and system administration in plan9.

Not using an OS because it doesn't have a shell like Bash is short sighted. These kind of arguments are why most of us don't even turn up to threads about plan9. It's the same 3 things over and over. No command history, doesn't have Linux programs, doesn't have a native HTML4 compliant web browser


> We have no need for command history. Mostly because we use better tools such as Sam and Acme to run arbitrary shell commands.

Just now, I was repeatedly running curl in order to test an API, occasionally tweaking URL parameters here and there. Would you really open a text editor, type your curl line inside, and execute the result?

I'm not trying to be antagonistic, but I just have a hard time fathoming the idea of a shell without history.


But you do have command history, it's just not in your shell, because the shell is the not right place to put it. The windowing system exposes all the history as a text file, so you can use scripts that use this text file or write your own. I already mentioned " and "" in another comment. In particular, to reexecute previous command I'd just type "".

As for using text editors. Yes, in Plan 9 this is actually feasible and it's a widely used idiom. What makes it so much easier is that I can just middle-click or middle-swipe on anything inside the editor, and it would execute. So yeah, I can just type commands and edit them. When I B2 on them they will run.

Please see this excellent introduction to acme by Russ Cox: http://research.swtch.com/acme


I would be doing exactly that.

Or rather I'd merely be right clicking on a URL and my environment would already know I wanted to retrieve that URL as text. If I was in Acme it would open that text in a new window, if in the shell it would just print it on stdout (if that's what I had set up).

When I say the environment knows, actually a program called "the plumber" does text matching on the strings it is sent and executes commands based upon the pattern. I could arrange for different commands to execute based upon the URL.

If I knew I was going to experiment I would be keeping a record.

As Tesla said in response to Edison's now famous "1% inspiration, 99% perspiration" remark

"If you thought a bit more, you wouldn't have to sweat so much."

(both were in a live radio debate, curiously only Edison's has entered the lexicon)


The problem is that both your attitude and 4ad reflect a somewhat toxik high-priest holier-than-you.

For example, someone enquiring about using arrow for history navigation gets an immediate response about how bash is an abimination and a rant about no-one having written a new shell in 20 years and what not.

Meanwhile, skipping entirely any discussion about how plan 9 does things better. 4ad mentioned " but failed to explain how one navgates /down/ the history. It also entirely ignores the fact that users have voted and arrows have won. They are used to navigate in text. Navigate between email messages. Practically every where keyboard-based navigation is used, arrow leys have proved both accessible, simple to understand and fast to use for the level-1 needs (next, previous, ...). Are your rants enlightening? no. They merely impress that plan 9 is not a community I'd like to join.


"If id asked people what they wanted, they would have asked for a faster horse." -Henry Ford

Stop arguing for faster horses just because cars don't run on oats and hay.


And nothing of value was lost




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: