Article View: comp.sys.ibm.pc
Article #13700Make a simple command-line calculator with 4DOS
From: JR VanMechelen
Date: Fri, 22 Mar 1991 03:44
Date: Fri, 22 Mar 1991 03:44
13 lines
874 bytes
874 bytes
While it's not bc, I just realized that you can make a quick and dirty
commmand-line calculator using 4dos with the following alias:
alias bc=`echo %@eval[%&]%`
To use:
c:\> bc 3 + 4 + 5
12
c:\> _
Anybody have any really clever aliases?
JR
Technical Details
Message-ID:
<39585@netnews.upenn.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!lll-winken!cert!netnews.upenn.edu!gradient.cis.upenn.edu!jrvShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!lll-winken!cert!netnews.upenn.edu!gradient.cis.upenn.edu!jrv From: jrv@gradient.cis.upenn.edu (JR VanMechelen) Newsgroups: comp.sys.ibm.pc,alt.msdos.programmer Subject: Make a simple command-line calculator with 4DOS Message-ID: <39585@netnews.upenn.edu> Date: 22 Mar 91 03:44:19 GMT Sender: news@netnews.upenn.edu Reply-To: jrv@gradient.cis.upenn.edu (JR VanMechelen) Followup-To: comp.sys.ibm.pc Organization: University of Pennsylvania Lines: 13 Nntp-Posting-Host: gradient.cis.upenn.edu