diff options
author | 2024-06-07 15:24:12 +0800 | |
---|---|---|
committer | 2024-06-25 22:39:18 +0800 | |
commit | 6151327eb4456e82047b93fab2f9defdec0b36ad (patch) | |
tree | b8195e13f119f2962d43250f257ea2713edfb736 /ohoshell.sh | |
parent | 1b5748544f06d8bbcab8f1b12ac9ea65a53f154e (diff) | |
download | bcsh-master.tar.gz bcsh-master.zip |
In bash, we can use args with space in it by quote the arg itself,
like `grep "test C"` or `cd "dir 1"`. I make it. Add a STR type in
flex, and deal with it specially while append it as an argument
(malloc a new str space, copy the content of STR into it, then free
the STR string, add the new str as an argument).
Diffstat (limited to 'ohoshell.sh')
-rw-r--r-- | ohoshell.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ohoshell.sh b/ohoshell.sh index 341b5ad..f45f584 100644 --- a/ohoshell.sh +++ b/ohoshell.sh | |||
@@ -36,7 +36,7 @@ esac | |||
36 | flex -o lex.yy.c lex.l | 36 | flex -o lex.yy.c lex.l |
37 | bison -o syntax.tab.c -d -v syntax.y -Wcounterexamples | 37 | bison -o syntax.tab.c -d -v syntax.y -Wcounterexamples |
38 | 38 | ||
39 | $compiler -o bcsh bcsh.c syntax.tab.c -Wall \ | 39 | $compiler -o bcsh bcsh.c cmd.c syntax.tab.c -Wall \ |
40 | --target=$targetPlatform \ | 40 | --target=$targetPlatform \ |
41 | --sysroot=$native/sysroot \ | 41 | --sysroot=$native/sysroot \ |
42 | -march=$arch -mfloat-abi=softfp \ No newline at end of file | 42 | -march=$arch -mfloat-abi=softfp \ No newline at end of file |