You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 4, 2019. It is now read-only.
I think the problem is that whereis is a local command which by default outputs to the terminal directly and doesn't write the result to pipeline. It does that only in some cases and then there is a WriteSideEffectsToPipeline flag set. This basically happens when the ExecutionVisitor's EvaluateAst method is called.
For simple local program execution this behavior is wanted, as always writing the program's result to a pipeline would result in loss of output colors and formatting, and sometimes even in functionality.
We'd therefore need to identify the cases when and where the flag is set to true or false and make sure that the flag is set if there is a member invocation expression following.
I'm afraid this topic is currently fairly intransparent and related to the discussion in issue #268.
In PowerShell I can do the following:
In Pash I cannot:
Note that Pash echoes the command output but does not calls methods on it.
But it works if I place the command output to a variable:
The text was updated successfully, but these errors were encountered: