minishell's Introduction
minishell's People
minishell's Issues
unset で、ダブルフリーが起きている
cd でリーク
export A="ls libft" などとやった後、 $A とやって実行できる必要がある
#以下(= コメント)を削る機能の追加
リダイレクション部分終了後は、引き続きコマンドの引数として扱う必要がある
$? でリーク
$? と実施した場合の、エラーメッセージが異なる
exit の最大値/最小値 超えをエラー処理
パイプをまたいだ場合、$? の値が正しく反映されていない
cd 失敗時の $? の値。new_pwd に入る前に exit(EXIT_FAILURE) ではダメか?
unset のエラーメッセージが正確でない
echo > $USER -> monoue ファイル生成
echo \ で、入力待ちにならなくてはいけない
> a , < b , < src/main.c
cd で終了してしまう
echo で環境変数 -> セグフォ
unset HOME -> cd でダブルフリー
unset PATH の後、絶対パスでは実行できる必要がある
echo $undefined でリーク
echo < $unde のエラメを ambiguous にする
cd $unde でもリーク
exec 時、PATH の key との一致を、前から見ていく
fd 指定、255 over と INT_MAX over
unset でリーク
$?, パスが途中までは合っているケース対応
env $unde とかでもリーク
exit"" -> fork されてる?
path を通さなきゃいけないコマンドが、touch や ls 以外にもあるかも?
perror 削除
最初、クオーテーションは除いてしまわずに処理をする。最後、コマンド実行時の argv を用意する時に、クオーテーションを取り除く。
cat の標準入力待ちを ctrl + c や ctrl + d で打ち切った時の exit status
exit -10-10 をアウトと判定する
split_cmd_line, クオーテーション対応
echo >"" をエラメで弾く
exit 実行時、'exit' と表示させる
最初にリダイレクションが来るパターン(= ファイル生成)
environ の内在化
コマンドライン、スペースやタブのみの場合は OK
export でリーク
cat | wc | ls が、1回目と2回目で挙動が変わる
cat に ctrl-C で、プロンプトが2つになる
ls"" で実行できる必要あり
echo 2> a で、stderr への出力が以後表示されなくなってしまう
echo の後でクオーテーションを羅列した際、正しく区切られない
echo hoge | wc 動かない
main 関数切り分け
echo hoge 2> file1 とやった時、hoge は表示させる
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.