delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/11/04/18:45:25

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=LZ
HYb7XxphwkUc+/q2seTncP58rS0P7h8W/QAuZeljx+HAGd/5NWlUF7pUKqeagHpl
05t17TA4ouGGuTdB1wtZP6+YCxQQWARMAcAj9Xh6vkArsqSd8CB+uq/WTgU6BygV
CRfs3Pj2qWyzkZee7I0zXcFVHUG3Rd2QonMA12n9M=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=zeMscfvg
tEUb6Gv1KVeoCtaQwv0=; b=RiJ6+TsYBWjnxK++SutFosx3Emu4ZZCuxQsHWNg2
SBu+rpZQ1ThafQrhbnpxD7kIvUDNt+Wq8GNgZjQhRekxrgBH1IQLUnbCV0JUEBKh
OGmmIkcg2y826Id90EXTLQB1N32PDMnBt83ZpxiWHEPfsAAEMLC61V6HTxKkSqOc
xRY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.9 required=5.0 tests=AWL,BAYES_99,FREEMAIL_FROM,RDNS_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no version=3.3.2
X-HELO: mail-ie0-f173.google.com
MIME-Version: 1.0
X-Received: by 10.50.120.6 with SMTP id ky6mr13609784igb.58.1383608684301; Mon, 04 Nov 2013 15:44:44 -0800 (PST)
In-Reply-To: <2310234468.20131105023748@mtu-net.ru>
References: <CADex0xyCNo4QmZ=gDC0hz2o4if-TKuYFE-cN=HbBTRp0arMM_g AT mail DOT gmail DOT com> <2310234468 DOT 20131105023748 AT mtu-net DOT ru>
Date: Mon, 4 Nov 2013 15:44:44 -0800
Message-ID: <CADex0xwzYP0oHQ6q8x4uu9QDnrFYeh8Un7Udr50j56vpmavzSQ@mail.gmail.com>
Subject: Re: Executing Windows commands from Cygwin with or without cmd: what are the pros and cons?
From: Kenneth Wolcott <kennethwolcott AT gmail DOT com>
To: Andrey Repin <cygwin AT cygwin DOT com>
X-IsSubscribed: yes

On Mon, Nov 4, 2013 at 2:37 PM, Andrey Repin <anrdaemon AT yandex DOT ru> wrote:
> Greetings, Kenneth Wolcott!
>
>>   Where can I find information regarding the pros and cons of using or
>> not using the cmd command to execute Windows commands from Cygwin?
>
> If you clarify, what exactly you are trying to achieve, it would be immensely
> easier to answer your question, and the answer will be much more useful.
>
> That aside, I see a very short list of commands that have no equivalents in
> Cygwin environment, and very few of them are actually sensible.
>
> Soo... which of the.. what? two commands? you plan to use?
>
> My list is as follows:
>
> 1. Internal commands affecting the system, but have no counterpart in Cygwin:
> ASSOC
> ERASE
> FTYPE
> VERIFY
> VOL (?)
>
> 2. Internal commands with no meaning outside interpreter, or even restricted
> to use in batch files, which may or may not have equivalents in Cygwin:
> BREAK
> CALL
> CLS
> CMD
> COLOR
> DIR
> ECHO
> ENDLOCAL
> EXIT
> FOR
> GOTO
> HELP
> IF
> PAUSE
> PROMPT
> REM
> SETLOCAL
> SHIFT
> TITLE
> VER
>
> 3. Internal commands, that have appropriate counterparts in Cygwin:
> CD
> CHDIR
> COPY
> DATE
> DEL
> DOSKEY
> MD
> MKDIR
> MOVE
> PATH
> POPD
> PUSHD
> RD
> REN
> RENAME
> REPLACE
> RMDIR
> SET
> START (y/n)
> TIME
> TYPE
>
> External utilities disguised as internal commands, which may or may not have
> counterparts in Cygwin:
> AT
> ATTRIB
> CACLS
> CHCP
> CHKDSK
> CHKNTFS
> COMP
> COMPACT
> CONVERT
> DISKCOMP
> DISKCOPY
> FC
> FIND
> FINDSTR
> FORMAT
> GRAFTABL
> LABEL
> MORE
> PRINT
> RECOVER
> SORT
> SUBST
> TREE
> XCOPY

Hi Audrey;

  I was going to execute a MS-VC++ compiler command, not a DOS/Windows command.

  I want to do as much as I could for capturing the stdout/stderr
output and for capturing the exit status like I would as if I were on
a Linux system, or the best that I can under these circumstances.

Thanks,
Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019