Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OP-TEE
busybox
提交
c450437a
B
busybox
项目概览
OP-TEE
/
busybox
通知
0
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
B
busybox
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c450437a
编写于
7月 27, 2021
作者:
D
Denys Vlasenko
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
shell: update psubst testcases
Signed-off-by:
N
Denys Vlasenko
<
vda.linux@googlemail.com
>
上级
8dd676c6
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
53 addition
and
6 deletion
+53
-6
shell/ash_test/ash-psubst/falsetick.right
shell/ash_test/ash-psubst/falsetick.right
+24
-0
shell/ash_test/ash-psubst/falsetick.tests
shell/ash_test/ash-psubst/falsetick.tests
+19
-0
shell/ash_test/ash-psubst/falsetick2.right
shell/ash_test/ash-psubst/falsetick2.right
+1
-0
shell/ash_test/ash-psubst/falsetick2.tests
shell/ash_test/ash-psubst/falsetick2.tests
+3
-0
shell/hush_test/hush-psubst/falsetick.right
shell/hush_test/hush-psubst/falsetick.right
+0
-3
shell/hush_test/hush-psubst/falsetick.tests
shell/hush_test/hush-psubst/falsetick.tests
+0
-3
shell/hush_test/hush-psubst/falsetick3.right
shell/hush_test/hush-psubst/falsetick3.right
+3
-0
shell/hush_test/hush-psubst/falsetick3.tests
shell/hush_test/hush-psubst/falsetick3.tests
+3
-0
未找到文件。
shell/ash_test/ash-psubst/falsetick.right
0 → 100644
浏览文件 @
c450437a
0
0
0
0
2
2
2
2
./falsetick.tests: line 12: can't create /does/not/exist: nonexistent directory
1
./falsetick.tests: line 13: can't create /does/not/exist: nonexistent directory
1
./falsetick.tests: line 14: can't create /does/not/exist: nonexistent directory
1
./falsetick.tests: line 15: can't create /does/not/exist: nonexistent directory
1
./falsetick.tests: line 16: can't create /does/not/exist: nonexistent directory
1
./falsetick.tests: line 17: can't create /does/not/exist: nonexistent directory
1
./falsetick.tests: line 18: can't create /does/not/exist: nonexistent directory
1
./falsetick.tests: line 19: can't create /does/not/exist: nonexistent directory
1
shell/ash_test/ash-psubst/falsetick.tests
0 → 100755
浏览文件 @
c450437a
# Exitcode 0 (`` has no exitcode, but assignment has):
true; a=``; echo $?
false; a=``; echo $?
true; a=$(); echo $?
false; a=$(); echo $?
# Exitcode 2 (`cmd` expansion sets exitcode after assignment set it to 0):
true; a=`exit 2`; echo $?
false; a=`exit 2`; echo $?
true; a=$(exit 2); echo $?
false; a=$(exit 2); echo $?
# Exitcode 1 (redirect sets exitcode to 1 on error after them):
true; a=`` >/does/not/exist; echo $?
false; a=`` >/does/not/exist; echo $?
true; a=$() >/does/not/exist; echo $?
false; a=$() >/does/not/exist; echo $?
true; a=`exit 2` >/does/not/exist; echo $?
false; a=`exit 2` >/does/not/exist; echo $?
true; a=$(exit 2) >/does/not/exist; echo $?
false; a=$(exit 2) >/does/not/exist; echo $?
shell/ash_test/ash-psubst/falsetick2.right
0 → 100644
浏览文件 @
c450437a
Two:2 v:[]
shell/ash_test/ash-psubst/falsetick2.tests
0 → 100755
浏览文件 @
c450437a
v=v
v=`exit 2` `false`
echo Two:$? v:"[$v]"
shell/hush_test/hush-psubst/falsetick.right
浏览文件 @
c450437a
...
...
@@ -22,6 +22,3 @@ hush: can't open '/does/not/exist': No such file or directory
1
hush: can't open '/does/not/exist': No such file or directory
1
hush: can't open '/does/not/exist': No such file or directory
1
Done: a=b
shell/hush_test/hush-psubst/falsetick.tests
浏览文件 @
c450437a
...
...
@@ -17,6 +17,3 @@ true; a=`exit 2` >/does/not/exist; echo $?
false; a=`exit 2` >/does/not/exist; echo $?
true; a=$(exit 2) >/does/not/exist; echo $?
false; a=$(exit 2) >/does/not/exist; echo $?
# ...and assignment still happens despite redirect error:
true; a=$(echo b) >/does/not/exist; echo $?
echo "Done: a=$a"
shell/hush_test/hush-psubst/falsetick3.right
0 → 100644
浏览文件 @
c450437a
hush: can't open '/does/not/exist': No such file or directory
1
Done: a=b
shell/hush_test/hush-psubst/falsetick3.tests
0 → 100755
浏览文件 @
c450437a
# assignment still happens despite redirect error
true; a=$(echo b) >/does/not/exist; echo $?
echo "Done: a=$a"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录