This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygstart --directory switch is ignored when using --action=runas

On 06/10/2014 11:03, Marcin Kurczewski wrote:
I just ran into an issue that was already explained by someone else here:

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


Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]