登录 注册
当前位置:主页 > 资源下载 > 17 > 这是Shell的基本实现,作者为simple_shell

这是Shell的基本实现,作者为simple_shell

  • 更新:2024-11-29 18:20:32
  • 大小:70KB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:其它 - 开发技术
  • 格式:ZIP

资源介绍

霍尔伯顿简单壳 这是仅使用vi和emacs进行Linux命令行解释器的简单模拟,使用gcc -Wall -Werror -Wextra -pedantic ,并使用gdb和valgrind调试。 流程图 设置 编译使用该程序gcc -Wall -Werror -Wextra -pedantic *.c -o hsh并运行解释模式./hsh 。 另外,使用echo "ls" | ./hsh echo "ls" | ./hsh或./hsh < scripts_file或cat scripts_file | ./hsh cat scripts_file | ./hsh以使用非交互模式。 $ cat scripts_file ls pwd ls -la 程式码范例 列出当前目录: $ ./hsh # cisfun$ ls lslist.c memory.c