From 45ba9cc2a7bc62c7415ca982a6ab74efe27f2d01 Mon Sep 17 00:00:00 2001 From: kkoang <1029339374@qq.com> Date: Sat, 12 Apr 2025 19:33:42 +0800 Subject: [PATCH] Update pipelines.md --- lang-guide/chapters/pipelines.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lang-guide/chapters/pipelines.md b/lang-guide/chapters/pipelines.md index b5918a8ed76..e6a715c561c 100644 --- a/lang-guide/chapters/pipelines.md +++ b/lang-guide/chapters/pipelines.md @@ -37,9 +37,9 @@ Redirection to a file: | type | command | `file.txt` contents | printed to terminal | | -------------- | -------------------------- | ------------------- | ------------------- | -| o> file_path | `nu demo.nu o> file.txt` | "foo" | "barbar" | -| e> file_path | `nu demo.nu e> file.txt` | "barbar" | "foo" | -| o+e> file_path | `nu demo.nu o+e> file.txt` | "foo/nbarbar" | nothing | +| o> file_path | `nu demo.nu o> file.txt` | "foo\n" | "barbar" | +| e> file_path | `nu demo.nu e> file.txt` | "barbar\n" | "foo" | +| o+e> file_path | `nu demo.nu o+e> file.txt` | "foo\nbarbar\n" | nothing | `complete` command: @@ -238,4 +238,4 @@ It runs `custom-cmd` first, then pipes *stdout and stderr* to `^cmd5`, where bot | cmd1 | Piped | File | | cmd2 | File | File | | cmd3 | Piped | File | -| cmd4 | File | File | \ No newline at end of file +| cmd4 | File | File |