Oooh, thank you. BTW, when you do diffs in future, it's alot easier to work with the context diff output:
diff -u a b
as this shows the lines before and after surrounding the area and also includes the filename.
I was trying to save the output in $target_modes to avoid calling the program twice (actually 3 times, 2 times to fetch the list and then once to set the new mode) to help reduce the start-up time.
I'll apply your diff (Thanks for debugging it! - I only have a 1024x768 panel) and then try to check why the output isn't getting saved; quoteing the variable might help.
Oooh, thank you. BTW, when you do diffs in future, it's alot easier to work with the context diff output:
diff -u a b
as this shows the lines before and after surrounding the area and also includes the filename.
I was trying to save the output in $target_modes to avoid calling the program twice (actually 3 times, 2 times to fetch the list and then once to set the new mode) to help reduce the start-up time.
I'll apply your diff (Thanks for debugging it! - I only have a 1024x768 panel) and then try to check why the output isn't getting saved; quoteing the variable might help.