From af151a2d45640df91176d812a1c927659d2e4c40 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Tue, 13 Mar 2018 11:00:34 -0400 Subject: [PATCH] Fix 'pwd' command substitution (#413) --- .../second-edition/posts/02-minimal-rust-kernel/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blog/content/second-edition/posts/02-minimal-rust-kernel/index.md b/blog/content/second-edition/posts/02-minimal-rust-kernel/index.md index e9031a8e..1fde24d9 100644 --- a/blog/content/second-edition/posts/02-minimal-rust-kernel/index.md +++ b/blog/content/second-edition/posts/02-minimal-rust-kernel/index.md @@ -222,7 +222,7 @@ We can now build the kernel for our new target by passing the name of the JSON f [custom-target-bug]: https://github.com/rust-lang/cargo/issues/4905 ``` -> RUST_TARGET_PATH=(pwd) cargo build --target x86_64-blog_os +> RUST_TARGET_PATH=$(pwd) cargo build --target x86_64-blog_os error[E0463]: can't find crate for `core` | @@ -251,7 +251,7 @@ Xargo is “a drop-in replacement for cargo”, so every cargo command also work Let's try it: ```bash -> RUST_TARGET_PATH=(pwd) xargo build --target x86_64-blog_os +> RUST_TARGET_PATH=$(pwd) xargo build --target x86_64-blog_os Compiling core v0.0.0 (file:///…/rust/src/libcore) Finished release [optimized] target(s) in 22.87 secs Compiling blog_os v0.1.0 (file:///…/blog_os)