g***i 发帖数: 4272 | | b**********h 发帖数: 419 | 2 我来试着回答一下:
shell是REPL:read, eval, print, loop
read in "ls a*"
evaluate "ls a*": 命令是ls, 参数是a*, 那就把./下符合a*正则表达式的选项都列出来
然后面试官让elaborate哪里就说那里 | c*****e 发帖数: 3226 | 3 根本不在点子上,主要是 bash 如何执行的, exec system call
出来
【在 b**********h 的大作中提到】 : 我来试着回答一下: : shell是REPL:read, eval, print, loop : read in "ls a*" : evaluate "ls a*": 命令是ls, 参数是a*, 那就把./下符合a*正则表达式的选项都列出来 : 然后面试官让elaborate哪里就说那里
| f*****r 发帖数: 229 | 4 Kernel level ah. Should be system call, read inode, if it is cache hit, read
it and return; otherwise, issue physical block io, etc. Possibly need to
discuss unix file system structure. |
|