Code:
 alias DumpDB {
  write -c safedump.txt | set %start_time $ctime
  var %x = 1 | var %y = $lines(safedb.txt)
  while (%x <= %y) {
    write safedump.txt $read(safedb.txt,n,%x) $eval($read(safedb.txt,%x))
    echo -a unset -s $read(safedb.txt,n,%x) | unset -s $read(safedb.txt,n,%x)
    inc %x
  }
}  

And the safedb.txt is
%!next
%!time
%ask
%credits.ea
%exmode
%finish
%lag+ping
%nopsmsg
%ns.pass
%num
%nxt.qst
%oc.1
%read
%ltrivq blue lagoon
%trivia.status.cur
%tmp
%start
%time.allow
%time.between
%wins.voice
%voice
%wins.op
%counter
%querystring
%trivq
%start_time
Now only the first unset works but the write works fine and manually unsetting works
---
unset -s %!next
* Unset %!next
unset -s %!time
unset -s %ask
unset -s %credits.ea
unset -s %exmode
unset -s %finish
unset -s %lag+ping
unset -s %nopsmsg
unset -s %ns.pass
unset -s %num
unset -s %nxt.qst
unset -s %oc.1
unset -s %read
unset -s %ltrivq blue lagoon
unset -s %trivia.status.cur
unset -s %tmp
unset -s %start
unset -s %time.allow
unset -s %time.between
unset -s %wins.voice
unset -s %voice
unset -s %wins.op
unset -s %counter
unset -s %querystring
unset -s %trivq
unset -s %start_time
-
as you see the echo works but the actual unset only works once
-
Edit2: Another guy on undernet cant get any variables to unset

Last edited by Armada; 25/04/05 10:31 AM.