]> Sergey Matveev's repositories - feeder.git/blobdiff - cmd/clear
Trivial style fixes
[feeder.git] / cmd / clear
index 63eb946ae77264db7cc7b6b0675be3720db2acb7..7cf8ad3a4b4db6652c1a86f3a7818f6201b6b59a 100755 (executable)
--- a/cmd/clear
+++ b/cmd/clear
@@ -1,8 +1,7 @@
 #!/usr/bin/env zsh
-set -e
+setopt ERR_EXIT EXTENDED_GLOB
 cmds=$0:h:a
 . $cmds/env.rc
-setopt EXTENDED_GLOB
 [[ -s $1/max ]] && max=`cat $1/max` || max=$FEEDER_MAX_ITEMS
 (( max++ ))
 [[ $max -eq 1 ]] || rm -fv $1/cur/*(Nom[$max,-1])