while (1)
# set args = $< will NOT work. $< will be treated as a single word
set args = `echo $<`
-
+
if (${#args} != 2) break # end of input
set uid = $args[1]
@ checksorted = ($current_uid <= $uid)
- if (checksorted == 0) then
+ if (checksorted == 0) then
echo "Input not sorted"
exit $MR_SETQUOTA
endif
@ current_uid = $uid + 1
end
-
+
# zero all remaining quotas, except for nobody (32767).
if ($current_uid != 32767) setquota -r $dev $current_uid 32766 0
-
+
endif
exit 0