diff options
| author | Agando <roduccomm@gmail.com> | 2026-09-29 13:11:09 +0200 |
|---|---|---|
| committer | Agando <roduccomm@gmail.com> | 2026-09-29 13:11:09 +0200 |
| commit | 16bff4ca48e549ad765ee2dc296464c86e00a4fa (patch) | |
| tree | 3957aa7b0568a4960628d78a8397d11a696a443a /scripts/test-fs-commands.mjs | |
| parent | f5a591ed70327be2d2703879b03d9cf0229ade86 (diff) | |
newOS4: sed command (s///, /pat/d, Nd, -i, -n, pipe input) + help entries
Diffstat (limited to 'scripts/test-fs-commands.mjs')
| -rw-r--r-- | scripts/test-fs-commands.mjs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/test-fs-commands.mjs b/scripts/test-fs-commands.mjs index 72f81ae..a30faed 100644 --- a/scripts/test-fs-commands.mjs +++ b/scripts/test-fs-commands.mjs @@ -147,7 +147,7 @@ const L12 = ['l1','l2','l3','l4','l5','l6','l7','l8','l9','l10','l11','l12'].joi { const { mod, out } = scenario({ 'a.txt': 'foo bar\nfoo baz' }); runCmd(mod, 'sed', ['s/foo/X/', 'a.txt']); - check('sed s/foo/X/ first per line', text(out) === 'X bar\nfoo baz', text(out)); + check('sed s/foo/X/ first per line', text(out) === 'X bar\nX baz', text(out)); } { const { mod, out } = scenario({ 'a.txt': 'foo bar foo' }); @@ -204,7 +204,7 @@ const L12 = ['l1','l2','l3','l4','l5','l6','l7','l8','l9','l10','l11','l12'].joi const { mod, out, terminal } = scenario({}); terminal._pipeInput = 'x1\nx2'; runCmd(mod, 'sed', ['s/x/y/']); - check('sed reads pipe input', text(out) === 'y1\nx2', text(out)); + check('sed reads pipe input', text(out) === 'y1\ny2', text(out)); } { const { mod, out } = scenario({}); |