On 12 April 2011 00:36, Fred Cisin <cisin at xenosoft.com> wrote:
Quick C and QB
were _completely_ different product lines and languages.
What was the relationship to "EDIT" in MS-DOS?
That's a good question.
The EDIT command came in in MS-DOS 5.0 and persisted into MS-DOS 6,
6.2, 6.21 and 6.22.
It was a CUA full-screen text editor and remains a personal favourite
of mine. I *really* miss having an equivalent at the Linux console -
for me, it is far far preferable to vi, pico, nano, joe or any of the
other common Linux console editors. (EMACS? Don't talk to me about
EMACS.)
EDIT.EXE is a stub which calls QBASIC.EXE in a special mode.
QBASIC, which also came in with MS-DOS 5, is basically the IDE of
QuickBASIC 4.5, but with the compiler, linker and all the related
functionality removed - no tracepoints, no variable WATCH functions,
etc. - and replaced with an updated version of the old GWBASIC
interpreter. Help and so on all remains.
In EDIT.EXE mode, all the BASIC handling is hidden, so it appears to
be just a plain-text editor. Multi-file, windowing or tiled display,
CUA compliant, mouse or keyboard driven, full context-sensitive help,
etc.
If you remove QBASIC.EXE and QBASIC.HLP, then EDIT no longer
functions. The stub EXE itself doesn't contain any editing code: it
basically just calls QBASIC.EXE with the /edit command-line switch,
passing any file names across too.
It's a very nice handy bit of code, actually. A fairly decent BASIC
interpreter and a decent editor coupled together and given away for
free. I used it a lot for quick scripts and things and still miss it
today.
As of MS-DOS 7 - the version embedded in Windows 95 and above - QBASIC
is gone and EDIT.EXE is a full-blown editor in its own right.
--
Liam Proven ? Info & profile:
http://www.google.com/profiles/lproven
Email: lproven at cix.co.uk ? GMail/GoogleTalk/Orkut: lproven at
gmail.com
Tel: +44 20-8685-0498 ? Cell: +44 7939-087884 ? Fax: + 44 870-9151419
AIM/Yahoo/Skype: liamproven ? MSN: lproven at
hotmail.com ? ICQ: 73187508