delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/10/06/05:03:35

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:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=UuoNn7v2PeMLYp2VbkahmIVM26Kqv
GBwwFRvRs33cbcj6thy4IR9Xi0S3vqCi67eYCucOP6pKGAeKL7cNg/DAoCGykJOK
oiPSD/oWsAxMTZVaFt1IyVlVVoTBEuY9y8v3uohc3m/ALoJ8nZgTF2+dcUgkLtZ3
p3uLybAF1C5b+I=
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:date:message-id:subject:from:to
:content-type; s=default; bh=jKufeAm1nSxRlj5emn4lbwlaj1A=; b=taV
T0JQu/Y4vwMKwv2y1Hnvf0qGSeftRDx8jZEIEDuIa8rPBzWRUBs07RstkpQyn4OI
u4B5qVp353DrNIV9JQOcRLPkN1rxg2arB5KdtmpfwP9DfAZDUJ1T51ya7yeTwjvc
EUWFR3Wf/ENZBCPOpI1D7fpJ9QZkrB5kDFJvUPOg=
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.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,URIBL_RHS_DOB autolearn=ham version=3.3.2
X-HELO: mail-wi0-f169.google.com
MIME-Version: 1.0
X-Received: by 10.194.143.69 with SMTP id sc5mr7267285wjb.49.1412586191508; Mon, 06 Oct 2014 02:03:11 -0700 (PDT)
Date: Mon, 6 Oct 2014 11:03:11 +0200
Message-ID: <CAF3aVt-BBe90bAm9wQU1_JcOSeqEqGFAPJJ1-MsM5sKHqmGhMA@mail.gmail.com>
Subject: cygstart --directory switch is ignored when using --action=runas
From: Marcin Kurczewski <rr- AT sakuya DOT pl>
To: cygwin AT cygwin DOT com

I just ran into an issue that was already explained by someone else here:
http://superuser.com/questions/720846/cygstart-directory-switch-is-ignored-when-using-action-runas

Below I paste contents of above report, from ZeroKnight:

>It seems the --directory switch is ineffective when used with --action=runas
>when using cygstart. For example:
>
>cygstart --action=runas --directory=`cygpath -wa $PWD` cmd.exe /k dir
>
>The expected output is the contents of the working directory of the
>cygwin shell the command was run from. Instead, it outputs the contents of
>C:\Windows\system32, the default starting path for an administrative command
>prompt, completely ignoring the --directory switch. In contrast, omitting the
>--action=runas switch gives the expected output, but obviously not with
>elevated permissions.

Confirmed the bug to still exist on my version of Cygwin, which is:

CYGWIN_NT-6.2-WOW64 work 1.7.28(0.271/5/3) 2014-02-09 21:06 i686 Cygwin

--
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