diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-15 16:35:40 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-15 16:35:40 +0100 |
| commit | 5ecb8aafa496e9dfff51378be50eb29858b5465a (patch) | |
| tree | 312a64f45148d03464c08f309af4a9a46a3f4ec8 /smash/main.c | |
| parent | 0d9c643920a9431870983c896fb0b45d87d88afe (diff) | |
add quote parsing to smash
Diffstat (limited to 'smash/main.c')
| -rw-r--r-- | smash/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/smash/main.c b/smash/main.c index efc7bd1..3c5b559 100644 --- a/smash/main.c +++ b/smash/main.c @@ -2,6 +2,7 @@ #include "comment.h" #include "env.h" #include "variable.h" +#include "prompt.h" #include "../lib/sys/io.h" #include "../lib/cstr/cstr.h" @@ -15,7 +16,6 @@ int main(int argc, char *argv[]) { - char prompt[] = "$ "; i64 line_length; int fd = STDIN_FD; char linebuf[BUFSIZ]; @@ -35,7 +35,7 @@ int main(int argc, char *argv[]) while (1) { if (fd == STDIN_FD) - wstd(prompt); + prompt(); line_length = get_next_line_from_fd(fd, linebuf); |