tkoyasak / 42-minishell Goto Github PK
View Code? Open in Web Editor NEWA small shell like bash
A small shell like bash
use write_in_process
-Wall -Wextra -Werrorに対応
executionの中のgetenvを全てget_env_valueに変更
getcwdを使わずに、pathnameを繋いでPWDを更新
../が来たらその前のディレクトリを削除
subst
ではなく patsubst
を使うようにします.executionフォルダにあるファイルを分割して、関数を5以下にする
getcwd
で初期化する.echo -n aa bb に対応
改行のバグ修正
exit 1 2で終了してしまうバグ
(ls |)
このケースでリークが発生しているexport VAR
のように値を代入せずに定義した場合、export
で表示されない。export A=1 123
のようにexportの2つ目以降の引数がスルーされている。unset
も2つ目以降の引数がスルーされている。executionの中のg_exit_status
ls .*に対応
set_redirection_paramsのnorm対応
とりあえずWWWフラグ付きでコンパイルできるように修正します.
echo $?
の出力が258に変わってしまう。echo a " " b
の出力はa b
(4文字)であるべきだが、a b
(3文字)になる。ノーム
shell_varをNULLとして、動くテストに
echo -n のテストケース追加
use write_in_process
+=
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.