4NT vs. Bash (Was Re: problem with find/grep)

Reini Urban rurban@x-ray.at
Wed Nov 24 08:29:00 GMT 2004


Robert Schmidt schrieb:
> Igor Pechtchanski wrote:
>> ...
>  >
>> I know what 4DOS is.  I was just wondering what features of 4DOS were
>> missing in bash.  "eset" was one of those mentioned.  Are there more?
>>     Igor
> 
> Wouldn't eset by trivial to emulate with rl?
> 
> The only commands I haven't been able to replace with cygwin, are 
> "ftype" and "assoc", for maintaining file type associations.  I guess 
> regtool would do the job, but I haven't gone there yet.
> 
> I use them to ensure that BTM files are run by 4NT, and SH files are run 
> by sh, when launched from the explorer.
> 
> "except (file) [command]" command executes the given command while 
> hiding the given files (through the hidden file attribute).  Probably 
> also easy to emulate.
> 
> I still find myself operating much faster on a 4NT prompt than a bash 
> one.  One reason is that I've mapped jumping between drives to 
> "Alt+<drive letter>".  I guess the same could be done by mapping keys to 
> "cd /cygdrive/<drive letter>" in bash.

good idea.

> The second, most important reason: simply entering "directory\" at the 
> prompt will change to that directory (without having to type "cd "). I'm 
> still looking for a way to implement this in bash, which also works with 
> completion.  If I can get this, I'm ready to stop using 4NT constantly!

Get bash_completion at http://xarch.tu-graz.ac.at/publ/cygwin/release/
The bash completion is programmable, better than 4nt.

> When pressing PgUp on the 4NT prompt, I get the command history in a 
> very convenient pop-up list.  Enter will execute the selected command, 
> Ctrl+Enter will copy it to the command line.

Ctrl-r is better imho.

> Pressing Ctrl+PgUp pops up a similar list of the directory history in 
> the current session - also extremely convenient.

Well, then combine the best of both worlds (as cgf and I do) and run 
your login bash under 4nt.exe.
This way you have all the good terminal stuff from 4nt, and bash.
Just some keys have to be programmed if you don't like the default.
-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/



More information about the Cygwin-talk mailing list