Run command uses same environment as box executable when it was first started

Description

The run command seems to have the same OS context as the box command when it was started (at least in Windows). For example, if you CD into a different location and run something like
run dir

You get output from the directory where box was started. This behavior may not be expected by the user, especially if the command is expected to make changes on the current directory within commandbox.

Gliffy Diagrams

Activity

Show:

Brad Wood November 13, 2015 at 10:41 PM

Thanks for testing. I also tried Windows and Linux earlier and found the same result.

Anthony DeCusati November 13, 2015 at 10:00 PM

I just checked this in linux and the same appears to be true. If i start box from /tmp, then cd to a different directory from within commandbox, run pwd will show /tmp instead of my home path:

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Affects versions

Fix versions

Priority

Components

Sentry

Created November 13, 2015 at 9:34 PM
Updated January 21, 2016 at 3:29 PM
Resolved January 21, 2016 at 3:29 PM