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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=QCCFWHL176ljDZW6iu53lTgKqKBIn6RxQeJLMYwI7PW P1NvcAQVdvKJIRO4F2AIq8V//F1+mxuaAlrB+A8aGEw8tH5tzQ7Ti/0Afh0n8DZ7 SAfEA7q2oME6F6J8g21H50DC7jCihCvopxn+s3nN39bzXZQP+014nqf5/31Lws6I = 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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=b8lZeIk8brEsdHRDLsDbj2jvlVM=; b=OvdlsSCMWUA/tbf8r XiJDcnLx2bsr4w4p0PYCDqJ/Je0DbA2/SqI5QmIIFkmHW+zuIzLhBbe5RWAoiNoM X83z+uTxKXKxWN+XzTlq4rewvLD29W9pBy9f3AZSdXStJQZkIm+jpHMbXS+L0Nim eBCvF0oiFaG91/O10Uj21WD6j0= 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=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,URIBL_RHS_DOB autolearn=ham version=3.3.2 X-HELO: mail-wg0-f45.google.com X-Received: by 10.180.101.134 with SMTP id fg6mr3535316wib.9.1412587033540; Mon, 06 Oct 2014 02:17:13 -0700 (PDT) Message-ID: <54325E0F.7000609@gmail.com> Date: Mon, 06 Oct 2014 11:17:03 +0200 From: Marco Atzeri <marco DOT atzeri AT gmail DOT com> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: cygstart --directory switch is ignored when using --action=runas References: <CAF3aVt-BBe90bAm9wQU1_JcOSeqEqGFAPJJ1-MsM5sKHqmGhMA AT mail DOT gmail DOT com> In-Reply-To: <CAF3aVt-BBe90bAm9wQU1_JcOSeqEqGFAPJJ1-MsM5sKHqmGhMA@mail.gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 06/10/2014 11:03, Marcin Kurczewski wrote: > 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 > works fine on my system $ uname -vrs CYGWIN_NT-6.1-WOW64 1.7.32(0.274/5/3) 2014-08-13 23:03 What about 1) updating your system 2) following https://cygwin.com/problems.html guidelines ? Regards Marco -- 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