Skip to content

Echo exhibits inconsistant behavior with sed #887

Closed

Description

@Flare576

Assuming
fileA:

VAR1=Chill
VAR2=StupidLongName
VAR3=AlsoChill

The following works:
open fileA | lines | split-column "=" Name Value | get Value | ^echo $it | sed -e "s/^\(.\{0,9\}\).*$/\1/"

Chill
StupidLon
AlsoChill

Note external echo

The following does not.
open fileA | lines | split-column "=" Name Value | get Value | echo $it | sed -e "s/^\(.\{0,9\}\).*$/\1/"
Observed behavior is a system hang

nushell(master)> open Cargo.toml | get package.version
0.4.1

Activity

  1. added
    category:bug
    A:external-commands
    status:investigate
    on Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:external-commandscategory:bugstatus:investigate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions