New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command, debug-command attrs to run/sudo return value #241

bitprophet opened this Issue Aug 19, 2011 · 2 comments


None yet
1 participant

bitprophet commented Aug 19, 2011


It'd be nice for completion's sake to allow users to access the command passed in, and especially the expanded version that was actually run (with shell wrapper, cd/prefix/etc prefixes, escape characters, etc).

While the plain-jane command should always be accessible in your own code by assigning the expression passed to run, to a variable, this would save people a tiny bit of work; and the debug version of the command is never persisted anywhere, even if printed, and would be handy for auditing, logging or debugging purposes.

Thinking something like return_val.command and return_val.full_command or something like that -- think a bit prior to implementing.

Originally submitted by Jeff Forcier (bitprophet) on 2010-10-06 at 03:18pm EDT


This comment has been minimized.


bitprophet commented Mar 2, 2012

Closing in favor of the pull request issue.

@bitprophet bitprophet closed this Mar 2, 2012

@bitprophet bitprophet reopened this May 21, 2012


This comment has been minimized.


bitprophet commented May 21, 2012

PR got nuked or something, doing this now by hand :) .command and .real_command sound reasonable I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment