Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: "Vince Rice" To: "David Bolen" , "Cygwin list" Subject: RE: Cmd prompt functions missing Date: Thu, 3 Aug 2000 22:09:22 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: <1DB8BA4BAC88D3118B2300508B5A552CD9285C@mail.fitlinxx.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Why alias the cmd/command versions -- the Unix versions have more functionality for the most part. I do alias the syntax, though, as in alias cmd='cmd /c' alias cls=clear alias dir='ls -Fal' alias copy=cp alias del=rm Vince -----Original Message----- From: cygwin-owner AT sources DOT redhat DOT com [mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of David Bolen Sent: Thursday, August 03, 2000 12:08 PM To: Cygwin list Subject: RE: Cmd prompt functions missing Jonas Jensen [bones0_list AT hotmail DOT com] writes: > I've found the Cygwin bash shell to be a perfect alternative to > cmd.exe. However, there are some functions missing, or I can't find > them: Most of these commands are just internal commands from 'cmd' (start/cls) or external programs in your Windows directory (mode). I'm not personally familiar with 'runas'. For me, I just define a general purpose alias to give a command to the original command interpreter, and a few special aliases for commands I really like, e.g.: # # Some aliases that want to use the original command processor # alias cmd='cmd /c' alias cls='cmd cls' alias dir='cmd dir' alias copy='cmd copy' alias del='cmd del' This way you can say "cmd xxxx" for any random command processor command. Of course, you could always just type "cmd /c" manually, but I'm for saving three keystrokes. Oh, and you should be able to run mode directly if you type it as "mode.com" (just as you need the .bat extension for batch files). But if you do "cmd mode" it'll work too since cmd will search for .com files. The others I have because I use them more frequently (e.g., dir can be much faster than ls on a remote system, copy/del is faster to floppy drives than cp, and I just like cls :-) -- David /-----------------------------------------------------------------------\ \ David Bolen \ E-mail: db3l AT fitlinxx DOT com / | FitLinxx, Inc. \ Phone: (203) 708-5192 | / 860 Canal Street, Stamford, CT 06902 \ Fax: (203) 316-5150 \ \-----------------------------------------------------------------------/ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com