 |
 |
 |
 |
| Programming & Packaging A place to discuss programming and packaging. |

2nd May 2009, 08:05 AM
|
 |
Registered User
|
|
Join Date: Feb 2008
Posts: 655

|
|
|
Unix vs DOS
I know that unix commands and shell-scripts are very smart...a single command allows a user to do a task that would probably require him to open 5 windows and click 50 times in any GUI environment...
what i m curious about is how smart is(was) MS-DOS...does DOS have the capability to make ingenious pipes and brilliant scripts...
my experience with Linux(UNIX) commands is most fulfilling mostly because of the inventiveness of Unix commands...a very complicated task can be performed by the collaboration of commands that perform rather trivial tasks individually...
So my question is are MS-DOS commands and utilities as smart as UNIX?
__________________
c_d -- superfluously plenteous yet indolently otiose
|

2nd May 2009, 11:23 AM
|
 |
Registered User
|
|
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300

|
|
|
No. The DOS CLI was very basic. If you've ever seen the dos prompt on older Win systems you have a good idea. It had the concept of file.extension built in and permitted a crummy version of wildcards '*'. No regular expressions, Yes a form of shell varaibles but no good way to manipulate the strings or execute them.
No pipes but some very clever scripting could use intermediate files.
FWIW CP/M had a very similar but IMO better CLI.
Last edited by stevea; 2nd May 2009 at 11:34 AM.
|

2nd May 2009, 11:27 AM
|
 |
Un-Retired Administrator
|
|
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929

|
|
Good old batch files. Haven't written one of them in years
__________________
Glenn
The Bassinator © ®
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
|

2nd May 2009, 11:52 AM
|
 |
Registered User
|
|
Join Date: Feb 2008
Posts: 655

|
|
|
i thought so too...DOS commands arnt as flexible as UNIX commands...which brings me to my actual question that i meant to ask...
UNIX was re-written in C in 1974...and DOS family of OS came in the late 1970s/early 80s ... so why was DOS even allowed to dominate the microcomputer market when UNIX was so much better and when they had so many versions of Unix available back then?
__________________
c_d -- superfluously plenteous yet indolently otiose
Last edited by creeping death; 2nd May 2009 at 11:56 AM.
|

2nd May 2009, 12:16 PM
|
 |
"Stefan the converted" -- forum Macintosh® Glee Club leader
|
|
Join Date: May 2007
Location: 127.0.0.1
Age: 38
Posts: 1,247

|
|
|
well in all truth microsoft powershell (2) is pretty nifty as well, it is DOS evolved and then some ... one might even think that it is at least as good (dare i say better?) then bash ..... in a windows environment of course....
__________________
"$ su - bofh"
OS: Mac OSX Snow Leopard (x64 by default), W7_Enterprise_X64, F12_x64_KDE
Hardware: late 2009 Macbook 13", MSI Wind 10"
Browser: Opera 10.10, Safari 4
Registered linux user #459910
|

2nd May 2009, 12:21 PM
|
|
Clueless in a Cuckooland
|
|
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,922

|
|
Quote:
Originally Posted by creeping death
... so why was DOS even allowed to dominate the microcomputer market when UNIX was so much better and when they had so many versions of Unix available back then?
|
Because IBM chose DOS as operating system for the PC.
|

2nd May 2009, 01:15 PM
|
 |
Registered User
|
|
Join Date: Feb 2008
Posts: 655

|
|
yeah but why did ibm choose that...what factors made them make that choice?
@stefan_1967 how are powershell utilities better than UNIX utilities? anyways powershell was released in 2006...unix is much more mature...though cryptic
and moreover the powershell dev team themselves declare that their main focus was not to develop a CLI but an automation tool... http://blogs.msdn.com/powershell/arc...d-wpf-wtf.aspx
and if UNIX was better than DOS, then why was the microcomputer line of OS allowed devolved instead of allowing it to flourish and evolve with UNIX?
__________________
c_d -- superfluously plenteous yet indolently otiose
Last edited by creeping death; 2nd May 2009 at 01:42 PM.
Reason: i was hasty...
|

2nd May 2009, 02:49 PM
|
 |
Retired Community Manager -- Banned from Texas by popular demand.
|
|
Join Date: Sep 2007
Location: NYC
Posts: 8,142

|
|
|
Why? Well, Bill Gates had a business background and probably did a better job of marketing. There's histories all over the web, I'd do a bit of a search, trying to avoid the knne-jerk pro or anti-MS viewpoints.
What people do forget is that one reason Windows reached its position of dominance, before it was in a position to use its power, was because they were more intelligent about marketing than many others.
If Unix was (I'm pulling these numbers out of the air, I have no memory of what the prices were then) $10,000 and DOS was $500, there was obviously more room for profit with DOS.
Keep in mind that back then, Unix was extremely expensive.
__________________
--
http://home.roadrunner.com/~computertaijutsu
Do NOT PM forum members with requests for technical support. Ask your questions on the forum.
"I don't know why there is the constant push to break any semblance of compatibility" --anon
|

2nd May 2009, 03:08 PM
|
 |
Banned (for/from) behaving just like everybody else!
|
|
Join Date: Jul 2007
Location: Beijing, China
Posts: 1,307

|
|
|
Unix was designed with modularity in mind. The shell was designed to be some kind of "glue" that could make various specific programs work together. On the other hand the DOS command interpreter heavily relied on built-in functions of the command interpreter.
Simple Unix paradigms such as pipelining and filters was absent in DOS because DOS didn't support multitasking or concurrency. On Unix you can open a pipe connecting two processes together but on DOS you couldn't have two processes working concurrently at the same time.
__________________
I believe in nerditarianism. I read FedoraForum for the Fedora-related posts.
|

2nd May 2009, 03:09 PM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,100

|
|
|
I don't think the original IBM PC was capable of running Unix. I haven't checked this, but I believe Unix always required multitasking and networking, which is why it was on Vaxes and university networks.
Wasn't that Linus' idea - a version of Unix he could run at home?
You beat me by a minute there, Aleph - always knew I should have learned to touchtype
Last edited by sonoran; 2nd May 2009 at 03:10 PM.
Reason: slow typing
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 21:32 (Monday, 20-05-2013)
|
|
 |
 |
 |
 |
|
|