diff --git a/Cargo.toml b/Cargo.toml index 7582428..b2659ed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "j" -version = "0.2.3" +version = "0.2.4" authors = ["Casey Rodarmor "] license = "WTFPL/MIT/Apache-2.0" description = "a command runner" diff --git a/justfile b/justfile index e66cd4c..f1db8df 100644 --- a/justfile +++ b/justfile @@ -34,10 +34,12 @@ quine: create diff tmp/gen1.c tmp/gen2.c @echo 'It was a quine!' +quine-text = "'int printf(const char*, ...); int main() { char *s = \"int printf(const char*, ...); int main() { char *s = %c%s%c; printf(s, 34, s, 34); return 0; }\"; printf(s, 34, s, 34); return 0; }'" + # create our quine create: mkdir -p tmp - echo 'int printf(const char*, ...); int main() { char *s = "int printf(const char*, ...); int main() { char *s = %c%s%c; printf(s, 34, s, 34); return 0; }"; printf(s, 34, s, 34); return 0; }' > tmp/gen0.c + echo {{quine-text}} > tmp/gen0.c # clean up clean: diff --git a/src/app.rs b/src/app.rs index 5d85fb9..79b4321 100644 --- a/src/app.rs +++ b/src/app.rs @@ -21,7 +21,7 @@ macro_rules! die { pub fn app() { let matches = App::new("j") - .version("0.2.3") + .version("0.2.4") .author("Casey R. ") .about("Just a command runner - https://github.com/casey/j") .arg(Arg::with_name("list") diff --git a/src/lib.rs b/src/lib.rs index ce58a75..c6616f0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -959,7 +959,6 @@ fn tokenize(text: &str) -> Result, Error> { if escape || content_end >= rest.len() { return error!(ErrorKind::UnterminatedString); } - println!("{} {} {:?}", start, content_end, contents.chars().collect::>()); (prefix, &rest[start..content_end + 1], StringToken) } else if rest.starts_with("#!") { return error!(ErrorKind::OuterShebang)