summaryrefslogtreecommitdiff
path: root/rc/bin/patch
diff options
context:
space:
mode:
authorqwx <qwx@sciops.net>2022-05-10 20:47:26 +0000
committerqwx <qwx@sciops.net>2022-05-10 20:47:26 +0000
commit3cf83fa259b70ab6289b9106c04da7c27d4b34d1 (patch)
treed3e2acb1b834b3e5358de30436a4a8f37c0ac57a /rc/bin/patch
parent6ca8e6bbafcc871301a90aa7bd4ca10533b1999a (diff)
/rc/bin: amend usage misdirections (thanks umbraticus)
Diffstat (limited to 'rc/bin/patch')
-rwxr-xr-xrc/bin/patch/list4
-rwxr-xr-xrc/bin/patch/undo2
2 files changed, 3 insertions, 3 deletions
diff --git a/rc/bin/patch/list b/rc/bin/patch/list
index 5bd2dfe24..2e7328fd6 100755
--- a/rc/bin/patch/list
+++ b/rc/bin/patch/list
@@ -8,7 +8,7 @@ if(! test -d /n/sources/patch){
pref=''
builtin cd /n/sources/patch || {
- echo 'can''t cd /n/sources/patch' >[2=1]
+ echo 'can''t cd /n/sources/patch' >[1=2]
exit no-sources
}
@@ -45,7 +45,7 @@ for(i in $*){
}
}
if not
- echo ' 'bad patch: $status >[2=1]
+ echo ' 'bad patch: $status >[1=2]
echo
}
} >/tmp/patchtmp.$pid
diff --git a/rc/bin/patch/undo b/rc/bin/patch/undo
index 177c24ab1..701f17b1c 100755
--- a/rc/bin/patch/undo
+++ b/rc/bin/patch/undo
@@ -29,7 +29,7 @@ fn xxx {
cp $2.backup $1
}
if not
- echo $1 has changed since patch was applied! >[2=1]
+ echo $1 has changed since patch was applied! >[1=2]
}
cat files | sed 's/^/xxx /' |rc