working bash_compare