X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib.sh;h=12c9b08a665414e232fb10b343c1989f00312dfd;hb=fdf83d84c09a58b14f58fde43e293ec0330f5869;hp=1ce0c33c4e96468aab048bf1b40d3997ab486819;hpb=2add0d25a030ae29da75d19a958643466f25b8ab;p=config%2Fdotfiles.git diff --git a/lib.sh b/lib.sh index 1ce0c33..12c9b08 100644 --- a/lib.sh +++ b/lib.sh @@ -101,7 +101,7 @@ simple_cpp() { break fi - cmd="$cmd s/\b$x\b/\$ARGV[\$i]/g; \$i++;" + cmd="$cmd s/\\b$x\\b/\$ARGV[\$i]/g; \$i++;" done perl_line_filter "$cmd" -- "$@" @@ -168,7 +168,7 @@ link() { ln -s "$source" "$target" # Go back to the directory where we were before. - cd "$pwd" + cd "$pwd" || return 1 } # Generate a file from a source file using a given command. A warning not to