blingblin-g / bearshell Goto Github PK
View Code? Open in Web Editor NEWคʕ • ﻌ•ʔค ❤❤❤ the cutest shell ever!
คʕ • ﻌ•ʔค ❤❤❤ the cutest shell ever!
"
와'
가 페어가 되면 하나의 문자열로 인식한다."
와'
가 페어가 되면 해당 "
와'
가 출력되지 않는다."
나'
가 이어서 붙는다면 해당 문자열까지 명령어로 인식한다.echo" " sooyoon
: error(echo : command not found), echo 뒤에 나오는 공백까지가 command로 인식되어 명령어를 찾지 못한다.e"ch"o
: 정상 작동extern char **environ;
를 이용하여 구현하기parsing
quotes, pipe, redirection, semicolon;
builtins --> only works as functions
==>need to implement functions
else --> process (executive files for example /bin/~)
==>need environment variable like PATH or PWD ...etc.
pipe, redirection, semicolon;
$?
ctrl-C, ctrl-D and ctrl-\ s
Environment variables
debug
-n
이 여러개가 연달아 오더라도 모두 옵션으로 처리한다.
bash는 아래와 같이 여러개의 옵션을 하나로 인식하고 동작한다.
bash-3.2$ echo -n -n -n -n haha
hahabash-3.2$
malloc, free, write, open, read, close, fork, wait,
waitpid, wait3, wait4, signal, kill, exit, getcwd,
chdir, stat, lstat, fstat, execve, dup, dup2, pipe,
opendir, readdir, closedir, strerror, errno
고민해오기
echo >| echo test
echo > | echo test
echo ~
echo ~/
echo '~'/
echo "~"/
echo ~'/'
echo ~"/"
echo ~~
echo ~(is_alnum)
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.