From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7574 invoked by alias); 6 Oct 2014 09:03:16 -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 7565 invoked by uid 89); 6 Oct 2014 09:03:15 -0000 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 Received: from mail-wi0-f169.google.com (HELO mail-wi0-f169.google.com) (209.85.212.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 06 Oct 2014 09:03:14 +0000 Received: by mail-wi0-f169.google.com with SMTP id cc10so6116083wib.2 for ; Mon, 06 Oct 2014 02:03:11 -0700 (PDT) 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) Received: by 10.27.10.161 with HTTP; Mon, 6 Oct 2014 02:03:11 -0700 (PDT) Date: Mon, 06 Oct 2014 09:03:00 -0000 Message-ID: Subject: cygstart --directory switch is ignored when using --action=runas From: Marcin Kurczewski To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2014-10/txt/msg00057.txt.bz2 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