summaryrefslogtreecommitdiff
path: root/rc
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
parent6ca8e6bbafcc871301a90aa7bd4ca10533b1999a (diff)
/rc/bin: amend usage misdirections (thanks umbraticus)
Diffstat (limited to 'rc')
-rwxr-xr-xrc/bin/Bfn4
-rwxr-xr-xrc/bin/ape/grep2
-rwxr-xr-xrc/bin/ape/ln4
-rwxr-xr-xrc/bin/ipso4
-rwxr-xr-xrc/bin/patch/list4
-rwxr-xr-xrc/bin/patch/undo2
6 files changed, 10 insertions, 10 deletions
diff --git a/rc/bin/Bfn b/rc/bin/Bfn
index d9b77ac9b..686f8ce18 100755
--- a/rc/bin/Bfn
+++ b/rc/bin/Bfn
@@ -1,7 +1,7 @@
#!/bin/rc
rfork e
if(! ~ $#* 1){
- echo usage: $0 fn >[2=1]
+ echo usage: $0 fn >[1=2]
exit usage
}
if(~ $#srcpath 0) srcpath=.
@@ -12,7 +12,7 @@ for(i in $res)
echo $i
switch($#res){
case 0
- echo $1: not found >[2=1]
+ echo $1: not found >[1=2]
case 1
B $res
}
diff --git a/rc/bin/ape/grep b/rc/bin/ape/grep
index a16f28bf8..c67d3f70d 100755
--- a/rc/bin/ape/grep
+++ b/rc/bin/ape/grep
@@ -12,7 +12,7 @@ while(! ~ $#* 0){
case -q
opts=($opts -s)
case -*
- echo $argv0 $1 not supported >[2=1]
+ echo $argv0 $1 not supported >[1=2]
exit 'not supported'
case *
files=($files $1)
diff --git a/rc/bin/ape/ln b/rc/bin/ape/ln
index bb5da4a44..a66231514 100755
--- a/rc/bin/ape/ln
+++ b/rc/bin/ape/ln
@@ -9,14 +9,14 @@ while(! ~ $#* 0 && ~ $1 -*){
case -s
;
case *
- echo 'usage: ln [-s] [-f] source destination' >[2=1]
+ echo 'usage: ln [-s] [-f] source destination' >[1=2]
exit 'usage'
}
shift
}
if(~ $force n && test -e $2){
- echo ln: $2 destination exists >[2=1]
+ echo ln: $2 destination exists >[1=2]
exit 'usage'
}
diff --git a/rc/bin/ipso b/rc/bin/ipso
index 1f0344f66..f85fdd6c7 100755
--- a/rc/bin/ipso
+++ b/rc/bin/ipso
@@ -66,7 +66,7 @@ while(~ $1 -*){
case -l
load = yes
case *
- echo >[2=1] 'usage: ipso [-a -f -e -l] [-s] [file ...]'
+ echo >[1=2] 'usage: ipso [-a -f -e -l] [-s] [file ...]'
exit usage
}
shift
@@ -85,7 +85,7 @@ if(~ $flush yes && ~ $edit no && ~ $load no){
}
if(~ $get aesget && ~ $#* 0){
- echo >[2=1] ipso: must specify a fully qualified file name for aescbc '(-a)'
+ echo >[1=2] ipso: must specify a fully qualified file name for aescbc '(-a)'
exit usage
}
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