Skip to content

Fix example history command pipeline - #10220

Merged
amtoine merged 1 commit into
nushell:mainfrom
ofek:patch-1
Sep 4, 2023
Merged

amtoine merged 1 commit into
nushell:mainfrom
ofek:patch-1

Conversation

@ofek

@ofek ofek commented Sep 4, 2023

Copy link
Copy Markdown
Contributor
❯ history | wrap cmd | where cmd =~ cargo
Error: nu::shell::type_mismatch

  × Type mismatch during operation.
   ╭─[entry #23:1:1]
 1 │ history | wrap cmd | where cmd =~ cargo
   · ───┬───                        ─┬ ──┬──
   ·    │                            │   ╰── string
   ·    │                            ╰── type mismatch for operator
   ·    ╰── record<start_timestamp: string, command: string, cwd: string, duration: duration, exit_status: int>
   ╰────

@amtoine amtoine left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @ofek 🙏

the old example does not work and the new one does work, let's land this improvement to the documentation 💪

@amtoine
amtoine merged commit b15c824 into nushell:main Sep 4, 2023
@ofek
ofek deleted the patch-1 branch September 4, 2023 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants