aboutsummaryrefslogtreecommitdiff
path: root/games/zs
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-07-04 00:00:37 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-07-04 00:04:23 +1200
commit733a772edb92e47edd991af669c3da8807acb706 (patch)
treea21639f402802c0f8a5db9aeafe732648cd35438 /games/zs
parentAdd seed validation to rndn(8) (diff)
downloaddotfiles-733a772edb92e47edd991af669c3da8807acb706.tar.gz
dotfiles-733a772edb92e47edd991af669c3da8807acb706.zip
Prevent zs(6) from making "zs" into "zzs"
Diffstat (limited to 'games/zs')
-rwxr-xr-xgames/zs9
1 files changed, 6 insertions, 3 deletions
diff --git a/games/zs b/games/zs
index 4a36f99a..728156ba 100755
--- a/games/zs
+++ b/games/zs
@@ -1,5 +1,8 @@
#!/bin/sed -f
# Prepend z appropriately to occurrences of s, in order to make fun of bezrend
-s,s,zs,g
-s,S\([a-z]\),Zs\1,g
-s,S,ZS,g
+s,^s,zs,g
+s,^S\([a-z]\),Zs\1,g
+s,^s,ZS,g
+s,\([^zZ]\)s,\1zs,g
+s,\([^zZ]\)S\([a-z]\),\1Zs\2,g
+s,\([^zZ]\)S,\1ZS,g