Skip to content

Instantly share code, notes, and snippets.

@QGB
Created December 19, 2018 02:55
Show Gist options
  • Save QGB/a99d9339a4f1fd648551f887ea2c44cc to your computer and use it in GitHub Desktop.
Save QGB/a99d9339a4f1fd648551f887ea2c44cc to your computer and use it in GitHub Desktop.
shell@HS8917QC:/ $ [ "$pyPath" != "" ] || echo 233
233
shell@HS8917QC:/ $
shell@HS8917QC:/ $ env|grep qs
qscript=//qshell
qsPath=//
shell@HS8917QC:/ $ unset qsPath
shell@HS8917QC:/ $ [ "$pyPath" != "" ] || echo 233 #不能检测 环境变量
233
shell@HS8917QC:/ $ env|grep qs
qscript=//qshell
shell@HS8917QC:/ $
&& 也不行。。???
1|shell@HS8917QC:/ $ [ "$pyPath" == "" ] && echo 233
233
shell@HS8917QC:/ $
shell@HS8917QC:/ $ env|grep qs
qscript=//qshell
shell@HS8917QC:/ $ export qsPath=1
shell@HS8917QC:/ $ [ "$pyPath" == "" ] && echo 233
233
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment