Azure / Azure/CloudShell

[BUG] Can't pipe commands to code

Open
#373 0 comments 3 reactions 0 assignees View on GitHub
bug Priority 2 Size: Medium
Dominant language
PowerShell
Stars
273
Forks
117
Avg merge
1h
Merged PRs (30d)
2

Description

## To Reproduce

```
pwd | code -
```

## Observed Behavior

Cloudshell code opens with - instead of the result of the pwd command

## Expected behavior

Cloudshell code should open with the result of the pwd command

This is an example with the pwd command but in practice it makes sense to pass command outputs to the code application, for example to read the big json responses az cli returns. You can pipe command outputs to code in a Linux machine by piping the command output to code with the hypen but this is not supported in the cloud version. An alternative is to put the output in a file and open the file, for example pwd > out | code out but this is cumbersome.

## Is this specific to Cloud Shell?
Yes

## Interface information
portal.azure.com cloud shell with bash

## Additional context
No

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.