From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13899 invoked by alias); 6 Oct 2014 09:17:19 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 13890 invoked by uid 89); 6 Oct 2014 09:17:18 -0000 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 Received: from mail-wg0-f45.google.com (HELO mail-wg0-f45.google.com) (74.125.82.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 06 Oct 2014 09:17:17 +0000 Received: by mail-wg0-f45.google.com with SMTP id m15so6084049wgh.16 for ; Mon, 06 Oct 2014 02:17:14 -0700 (PDT) X-Received: by 10.180.101.134 with SMTP id fg6mr3535316wib.9.1412587033540; Mon, 06 Oct 2014 02:17:13 -0700 (PDT) Received: from [172.21.188.197] ([62.154.173.198]) by mx.google.com with ESMTPSA id cx1sm10691693wib.1.2014.10.06.02.17.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Oct 2014 02:17:12 -0700 (PDT) Message-ID: <54325E0F.7000609@gmail.com> Date: Mon, 06 Oct 2014 09:17:00 -0000 From: Marco Atzeri 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@cygwin.com Subject: Re: cygstart --directory switch is ignored when using --action=runas References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00058.txt.bz2 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