Commits

Evan Gates  committed 228ac8a

store and reset IFS

  • Participants
  • Parent commits 70d461a

Comments (0)

Files changed (1)

File extras/chat.sh

 
 	while true; do
 		find "$PREFIX/$serv" | grep "in$" | xargs rm # clean stale fifos
+		oIFS="$IFS"
 		IFS=";"
 		for line in $commands; do
 			[ -n "$line" ] || continue
 			echo "OK"
 		done >> "$PREFIX/$serv/log" 2>&1 & # background so we can start ii
 
-		IFS=
+		IFS="$oIFS"
 		ii -i "$PREFIX" -s $args
 		[ $? -eq 2 ] || break # only restart ii on timeout (not default for ii)
 	done >> "$PREFIX/$serv/log" 2>&1 & # instead of locking the main one...