#! /bin/bash run_test ./drive_sql "select humanize_file_size()" check_error_output "" <') as repl" check_output "" <<\3> <\3><\3> EOF run_test ./drive_sql "select regexp_replace('123 abc', '(\w*)', '<\\\\>') as repl" check_output "" <<\> <\><\> EOF run_test ./drive_sql "select regexp_replace('abc: def', '(\w*):\s*(.*)', '\1=\2') as repl" check_output "" <\w+); (\w+)', 'foo=abc; 123') as result" check_output "" <\w+); (\w+\.\w+)', 'foo=abc; 123.456') as result" check_output "" <\w+)')" check_output "" <\w+)')" check_output "" <