aboutsummaryrefslogtreecommitdiffstats
path: root/ohoshell.sh
diff options
context:
space:
mode:
authorWe-unite <3205135446@qq.com>2024-06-07 15:24:12 +0800
committerWe-unite <3205135446@qq.com>2024-06-25 22:39:18 +0800
commit6151327eb4456e82047b93fab2f9defdec0b36ad (patch)
treeb8195e13f119f2962d43250f257ea2713edfb736 /ohoshell.sh
parent1b5748544f06d8bbcab8f1b12ac9ea65a53f154e (diff)
downloadbcsh-master.tar.gz
bcsh-master.zip
Add STR type and can "<params>" now.HEADmaster
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.sh2
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
36flex -o lex.yy.c lex.l 36flex -o lex.yy.c lex.l
37bison -o syntax.tab.c -d -v syntax.y -Wcounterexamples 37bison -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