aboutsummaryrefslogtreecommitdiff
path: root/scripts/test-fs-commands.mjs
diff options
context:
space:
mode:
authorAgando <roduccomm@gmail.com>2026-09-29 13:11:09 +0200
committerAgando <roduccomm@gmail.com>2026-09-29 13:11:09 +0200
commita96ee68a868800d23adaed58be1763a702ff4b26 (patch)
tree1474026cb5f6be9ce760ca9993efc2f9ba0549ec /scripts/test-fs-commands.mjs
parentcf43aa8bcc92909af99545d7c29dbf3e1a52db23 (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.mjs4
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({});