Skip to content

Command not found should suggest how to install like in bash #1982

Closed
@lzybkr

Description

@lzybkr

Steps to reproduce

Run a command that's not installed on your Linux machine, e.g. dtrace.

Expected behavior

jasonsh@jasonsh-ubd02:~$ dtrace
The program 'dtrace' is currently not installed. You can install it by typing:
sudo apt-get install systemtap-sdt-dev

Actual behavior

PS> dtrace                                                                                                               
dtrace : The term 'dtrace' is not recognized as the name of a cmdlet, function, script file, or operable program. Check 
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ dtrace
+ ~~~~~~

Environment data

PS /home/jasonsh> $PSVersionTable                                                                                        

Name                           Value                                                                                    
----                           -----                                                                                    
PSVersion                      6.0.0-alpha                                                                              
PSEdition                      Core                                                                                     
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                  
BuildVersion                   3.0.0.0                                                                                  
GitCommitId                    v6.0.0-alpha.9                                                                           
CLRVersion                                                                                                              
WSManStackVersion              3.0                                                                                      
PSRemotingProtocolVersion      2.3                                                                                      
SerializationVersion           1.1.0.1                                                                                  


PS /home/jasonsh> uname -v                                                                                               
#49~14.04.1-Ubuntu SMP Wed Jun 29 20:22:11 UTC 2016

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugUsability(LEGACY) Helps filter issues that might be higher priority because they directly affect usabilityWG-Interactive-Consolethe console experience

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions