Ubuntu里shell和命令执行结果不同(Bash和sh区别)
来源:互联网 发布:非遗联盟大数据平台 编辑:程序博客网 时间:2024/05/20 06:26
我这里有个很简单的脚本
root@ubuntu:~/shell# vim hello.sh
!/bin/Bash
The first program
Author:jchen
echo -e “jchen is a superman!”
脚本里的echo -e “jchen is a superman!”在命令下正常的执行结果如下:
root@ubuntu:~/shell# echo -e “jchen is superman!”
jchen is superman!
这个脚本在bash和sh下执行结果有点不一样
root@ubuntu:~/shell# sh hello.sh
-e jchen is a superman!
root@ubuntu:~/shell# bash hello.sh
jchen is a superman!
1 0
- Ubuntu里shell和命令执行结果不同(Bash和sh区别)
- ubuntu(linux)下source、sh/bash、./ 和 直接 执行脚本的区别
- bash和sh区别
- shell脚本执行命令 . 和sh 和 source 和 ./ 的使用以及区别
- Ubuntu系统下bash和dash的区别(修改默认sh为bash)
- 嵌入式linux:Ubuntu系统下bash和dash的区别(修改默认sh为bash)
- Linux-SHELL中sh和bash的区别
- Linux-SHELL中sh和bash的区别
- Linux sh、source和.命令执行.sh文件的区别
- Linux sh、source和.命令执行.sh文件的区别
- sh和bash的区别
- sh和bash的区别
- ubuntu 上source 、sh 、bash和。/脚本运行区别
- bash、dash(/bin/bash和/bin/sh)的区别
- 手动执行shell和crontab执行结果不同
- ./执行文本和sh命令执行文本的区别
- Linux shell脚本 #!/bin/sh和$bash
- Shell编程(/bin/sh和/bin/bash)
- [Leetcode] #334 Increasing Triplet Subsequence
- 【C语言常识】mdk:Inline assembler rules for compiler keywords __asm and asm
- apache kafka系列之在zookeeper中存储结构
- SQL 视图 局部变量 全局变量 条件语句 事务 触发器
- Uncaught TypeError: Cannot read property 'trigger' of undefined(zepto.js)
- Ubuntu里shell和命令执行结果不同(Bash和sh区别)
- asp.net中的cookie
- Java数组全排列
- nginx/mysql平滑启动
- 运用Unity的组件创建服务器和客户端,实现游戏网络化
- android中四种更新UI的方法
- 【WLAN从入门到精通-基础篇】第5期——华为WLAN产品命名规范(了解即可)
- MAVEN项目报错:An internal error occurred during: "Updating Maven Project" java.lang.NullPoint
- 无刷新分页 jquery.pagination.js