求助 linux写了一个小程序 如何加密这个小程序 让别人看不到源代码
时间:2011-07-12
来源:互联网
我man test看到
EXPRESSION1 -o EXPRESSION2
either EXPRESSION1 or EXPRESSION2 is true
是不是说两个表达式只要其中1个为假时,整个表达式就为假啊
(就是说,只有两个表达式都为真才为真)
但是我在动手验证的时候结果如下
[user@localhost ~]$ test 119 -o 119
[user@localhost ~]$ echo $?
0
[user@localhost ~]$ test ! 119 -o 119
[user@localhost ~]$ echo $?
1
[user@localhost ~]$ test 119 -o ! 119
[user@localhost ~]$ echo $?
0
[user@localhost ~]$ test ! 119 -o ! 119
[user@localhost ~]$ echo $?
1
[user@localhost ~]$
请问为什么
[user@localhost ~]$ test 119 -o ! 119
[user@localhost ~]$ echo $?
0
为真,不为假
EXPRESSION1 -o EXPRESSION2
either EXPRESSION1 or EXPRESSION2 is true
是不是说两个表达式只要其中1个为假时,整个表达式就为假啊
(就是说,只有两个表达式都为真才为真)
但是我在动手验证的时候结果如下
[user@localhost ~]$ test 119 -o 119
[user@localhost ~]$ echo $?
0
[user@localhost ~]$ test ! 119 -o 119
[user@localhost ~]$ echo $?
1
[user@localhost ~]$ test 119 -o ! 119
[user@localhost ~]$ echo $?
0
[user@localhost ~]$ test ! 119 -o ! 119
[user@localhost ~]$ echo $?
1
[user@localhost ~]$
请问为什么
[user@localhost ~]$ test 119 -o ! 119
[user@localhost ~]$ echo $?
0
为真,不为假
作者: chengmoYS 发布时间: 2011-07-12
上面说得有些混淆。
EXPRESSION1 -o EXPRESSION2
either EXPRESSION1 or EXPRESSION2 is true
按字面理解就应该是,exp1 or exp2,当其中有一个为真或者两个都为真,整个表达式结果才为真
那么,下面这个
[user@localhost ~]$ test ! 119 -o 119
[user@localhost ~]$ echo $?
1
为什么为假呀
EXPRESSION1 -o EXPRESSION2
either EXPRESSION1 or EXPRESSION2 is true
按字面理解就应该是,exp1 or exp2,当其中有一个为真或者两个都为真,整个表达式结果才为真
那么,下面这个
[user@localhost ~]$ test ! 119 -o 119
[user@localhost ~]$ echo $?
1
为什么为假呀
作者: chengmoYS 发布时间: 2011-07-12
我man test看到
EXPRESSION1 -o EXPRESSION2
either EXPRESSION1 or EXPRESSION2 is true
是不是说两个表达式只要其中1个为假时,整个表达式就为假啊
(就是说,只有两个表达式都为真才为真)
但是我在动手验证的时候结果如下
[user@localhost ~]$ test 119 -o 119
[user@localhost ~]$ echo $?
0
[user@localhost ~]$ test ! 119 -o 119
[user@localhost ~]$ echo $?
1
[user@localhost ~]$ test 119 -o ! 119
[user@localhost ~]$ echo $?
0
[user@localhost ~]$ test ! 119 -o ! 119
[user@localhost ~]$ echo $?
1
[user@localhost ~]$
请问为什么
[user@localhost ~]$ test 119 -o ! 119
[user@localhost ~]$ echo $?
0
为真,不为假
EXPRESSION1 -o EXPRESSION2
either EXPRESSION1 or EXPRESSION2 is true
是不是说两个表达式只要其中1个为假时,整个表达式就为假啊
(就是说,只有两个表达式都为真才为真)
但是我在动手验证的时候结果如下
[user@localhost ~]$ test 119 -o 119
[user@localhost ~]$ echo $?
0
[user@localhost ~]$ test ! 119 -o 119
[user@localhost ~]$ echo $?
1
[user@localhost ~]$ test 119 -o ! 119
[user@localhost ~]$ echo $?
0
[user@localhost ~]$ test ! 119 -o ! 119
[user@localhost ~]$ echo $?
1
[user@localhost ~]$
请问为什么
[user@localhost ~]$ test 119 -o ! 119
[user@localhost ~]$ echo $?
0
为真,不为假
作者: chengmoYS 发布时间: 2011-07-12
上面说得有些混淆。
EXPRESSION1 -o EXPRESSION2
either EXPRESSION1 or EXPRESSION2 is true
按字面理解就应该是,exp1 or exp2,当其中有一个为真或者两个都为真,整个表达式结果才为真
那么,下面这个
[user@localhost ~]$ test ! 119 -o 119
[user@localhost ~]$ echo $?
1
为什么为假呀
EXPRESSION1 -o EXPRESSION2
either EXPRESSION1 or EXPRESSION2 is true
按字面理解就应该是,exp1 or exp2,当其中有一个为真或者两个都为真,整个表达式结果才为真
那么,下面这个
[user@localhost ~]$ test ! 119 -o 119
[user@localhost ~]$ echo $?
1
为什么为假呀
作者: chengmoYS 发布时间: 2011-07-12
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28