diff --git a/doc/LICENSE b/doc/LICENSE deleted file mode 120000 index ea5b606..0000000 --- a/doc/LICENSE +++ /dev/null @@ -1 +0,0 @@ -../LICENSE \ No newline at end of file diff --git a/doc/README.md b/doc/README.md deleted file mode 120000 index 32d46ee..0000000 --- a/doc/README.md +++ /dev/null @@ -1 +0,0 @@ -../README.md \ No newline at end of file diff --git a/src/exec.hpp b/src/exec.hpp index 7ce3e2a..cdbf157 100644 --- a/src/exec.hpp +++ b/src/exec.hpp @@ -2,7 +2,7 @@ #if defined USE_HASHCACHE && USE_HASHCACHE == 1 #define RUNCMD { \ if (hctable.find(*argv) != hctable.end())\ - *argv = hctable[*argv].data();\ + *argv = &hctable[*argv][0]; \ if (!access(*argv, F_OK)) { \ exit(execv(*argv, argv)); \ } else { \ diff --git a/src/main.cpp b/src/main.cpp index 8552f27..8236a2d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -196,7 +196,6 @@ typedef int Jid; pid_t zrcpid = getpid(); std::string ret_val; std::deque bg_or_fg; - DispatchTable zwlcache; long ch_mode; #include "global.hpp" #include "config.hpp" @@ -206,7 +205,7 @@ typedef int Jid; static bool die (std::string_view ); static inline bool is_number (std::string_view ); WordList glob (std::string_view ); - template std::string zrc_fmt(const char *fmt, Var... args); + template std::string zrc_fmt(const char *fmt, Var... args); static std::string eval_stream (std::istream& ); template std::string eval(T const& ); // MAIN.CPP