Live data from Hacker News

Bringing Bash's powerful command line editing to Microsoft Windows' cmd.exe

code.google.com

71–80 of 96 posts

Re: Bringing Bash's powerful command line editing to Microsoft Windows' cmd.exe

#71
post #25

Or just use Far Manager - http://www.farmanager.com - it's Midnight Commander, Norton Commander type of program.

I've watched numerous Russian colleagues use it and it does not look appealing. These same colleagues do not seem to understand the power of a real *nix shell. You end up doing less typing if you really know your shell and how to pipe etc.

You can run cygwin shell from FAR, or any other shell. Seriously.

Think of Far Manager as Midnight Commander, more or less.

Re: Bringing Bash's powerful command line editing to Microsoft Windows' cmd.exe

#72
post #38
post #5

Earlier quoted context omitted.

starts too slow.

on my PC it is instantaneous, it is a matter of hardware.

Yeah, I can also handily disagree with this. My test machine has a 6 month old CPU and 6GB of RAM. I can reboot, wait 5 minutes and try to launch PowerShell and still be looking at a 5-15 second wait.

Re: Bringing Bash's powerful command line editing to Microsoft Windows' cmd.exe

#73
post #2

Looks sweet. I currently have to use Windows at the customer I'm working for. I've installed Console which gives tabs and better copy-n-paste on Windows. See http://sourceforge.net/projects/console/ I'm not sure if clink and Console will work together, but I'll have to try it.

I have tested and clink works with Console. Actually I don't see reason why it shouldn't work with Console. Maybe there might be shortcuts collisions but I have not met yet any.

Re: Bringing Bash's powerful command line editing to Microsoft Windows' cmd.exe

#74
post #8
post #2

Looks sweet. I currently have to use Windows at the customer I'm working for. I've installed Console which gives tabs and better copy-n-paste on Windows. See http://sourceforge.net/projects/console/ I'm not sure if clink and Console will work together, but I'll have to try it.

Console2 regularly crashes on my Windows 7, and it looks like it's not actively developed. I'm giving ConEmu a try and it looks awesome! http://code.google.com/p/conemu-maximus5/ Scott Hanselman wrote a blog post about it: http://www.hanselman.com/blog/ConEmuTheWindowsTerminalConsol...

Console2 looks releases 1-2 releases per yer. Looks quite stable while not active as some other projects. Check dates here: http://sourceforge.net/projects/console/files/console-devel/...

Re: Bringing Bash's powerful command line editing to Microsoft Windows' cmd.exe

#75
post #67
post #49

Earlier quoted context omitted.

I do only easy things with Powershell and I found it much nicer than classical shells. It's more consistent in the command names and parameter passing. You also need to learn far fewer commands, because Powershell follows the Unix philosophy of small tools that do one thing well much more than Bash+Unix tools. For example if you do "ls" then you get a table where one of the columns is LastWriteTime. Want to sort by t…

Just one more way that ms produces developers that cant do anything on their own, or outside visual studio. Just my experience, but most ms developers have been crippled by their tooling. Powershell is no exception.

"Powershell makes it easier to discover commands"

"You're weak and have been crippled by your tools."

o_o You're suffering from Stockholm Syndrome. Upgrade your tools and be free from menial labor.

Re: Bringing Bash's powerful command line editing to Microsoft Windows' cmd.exe

#76
post #33
post #27

Earlier quoted context omitted.

Windows lacks fork(), or at least it's not documented. To implement the Cygwin folks have to go through a lot of tricks to implement it. And one of them is rebasing all dlls to start at different addresses. There is a tool to rebase everything, and it's usually started after install. It's possible that after you have recompiled your own apps/dlls they might need rebasing too (speaking as a cygwin user, not developer)…

> Windows lacks fork(), or at least it's not documented. The NT kernel supports forking, but the Win32 subsystem does not. Because Interix lives outside the Win32 subsystem, it can provide a proper fork() implementation, whereas Cygwin has to live with its somewhat brittle emulation.

Maybe I misunderstand this, but couldn't someone write a driver for Cygwin to have a better fork implementation?

Re: Bringing Bash's powerful command line editing to Microsoft Windows' cmd.exe

#78
post #33

Earlier quoted context omitted.

> Windows lacks fork(), or at least it's not documented. The NT kernel supports forking, but the Win32 subsystem does not. Because Interix lives outside the Win32 subsystem, it can provide a proper fork() implementation, whereas Cygwin has to live with its somewhat brittle emulation.

Maybe I misunderstand this, but couldn't someone write a driver for Cygwin to have a better fork implementation?

As I understand it, the problem lies with making the different subsystems interact: Forking itself is reasonably easy using NtCreateProcess(), but the Win32 subsystem won't know how to deal with the forked process and stuff will break, including console output.

I don't see Microsoft adding forking support to the Win32 subsystem any time soon, so you'd end up rewriting Cygwin from scratch by reverse engineering Interix...

Re: Bringing Bash's powerful command line editing to Microsoft Windows' cmd.exe

#79
post #69

Earlier quoted context omitted.

I'm not a fan of powershell but I have to use it in my line of work. The only thing that I find sucks is that the pipeline is slow as snails. For example, an svnadmin dump piped to a file which takes 8 mins in cmd.exe takes 14 hours in powershell... Apart from that it's bearable!

perhaps the real solution to the performance issue you mention is to have svnadmin actually write to a target file instead of crossing process boundaries to redirect stdout ? have you tried : Start-Process '{PATHTOSUBVERSION}\svnadmin' -argumentlist "dump {PATH_TO_REPOSITORY}" -RedirectStandardOutput c:\temp\repodump.dmp -Wait more examples here : http://www.youtube.com/watch?v=9sn2L0E5jT8

Never tried that. I will have a go. Thanks for the suggestion.

Unfortunately its very verbose for a simple case which works fine in cmd so I'm not sure that it warrants using that tool

Re: Bringing Bash's powerful command line editing to Microsoft Windows' cmd.exe

#80
post #8
post #2

Looks sweet. I currently have to use Windows at the customer I'm working for. I've installed Console which gives tabs and better copy-n-paste on Windows. See http://sourceforge.net/projects/console/ I'm not sure if clink and Console will work together, but I'll have to try it.

Console2 regularly crashes on my Windows 7, and it looks like it's not actively developed. I'm giving ConEmu a try and it looks awesome! http://code.google.com/p/conemu-maximus5/ Scott Hanselman wrote a blog post about it: http://www.hanselman.com/blog/ConEmuTheWindowsTerminalConsol...

I've never had a single crash (of Console2) on my Win7.
Post reply on HN