From e006a3aa9cdc89fe1b3f402b0b0cef3ce3fb67c2 Mon Sep 17 00:00:00 2001 From: Chojan Shang Date: Sat, 10 Aug 2024 19:28:04 +0800 Subject: [PATCH] Ingore shebang at top of file Signed-off-by: Chojan Shang --- datafusion-cli/src/exec.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/datafusion-cli/src/exec.rs b/datafusion-cli/src/exec.rs index 178bce6f2fe6..db4242d97175 100644 --- a/datafusion-cli/src/exec.rs +++ b/datafusion-cli/src/exec.rs @@ -70,6 +70,9 @@ pub async fn exec_from_lines( for line in reader.lines() { match line { + Ok(line) if line.starts_with("#!") => { + continue; + } Ok(line) if line.starts_with("--") => { continue; }