vorpal icon indicating copy to clipboard operation
vorpal copied to clipboard

execSync command history

Open patrickhousley opened this issue 7 years ago • 2 comments

Is there a way to call execSync without having the command entered into the command history? I have a few situations where I chain commands and it causes the history to be polluted with commands the user didn't actually run (knowingly).

patrickhousley avatar Jan 08 '17 01:01 patrickhousley

I don't think so, exec is even used in history's unit tests.

MatthieuLemoine avatar Jan 09 '17 08:01 MatthieuLemoine

I think exec and execSync shouldn't add an history entry by default since these two functions can only be called programmatic ally, while the history is reserved for user actions.

It would be a bit like executing a bash script and have all the commands it contains polluting the history, that wouldn't work.

laurent22 avatar Jun 28 '17 20:06 laurent22