查看“Undefined variable script”的源代码
←
Undefined variable script
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
first file (excutable): echo 'this is tete' echo $hi echo 'OK!' exit run it and it prints: this is tete OK! second file (excutable): # echo 'this is tete' echo $hi echo 'OK!' exit run it and it prints: this is tete hi: Undefined variable. Because 1st file have no "#"/"#!/bin/sh"/"#!/bin/csh" on the first line, in most of the linux distributions, the default interpreter of a script is /bin/sh if it is not specified, and /bin/sh DOES NOT think an undefined variable is a problem! "#" will call csh, and print the problem.
返回至“
Undefined variable script
”。
导航菜单
个人工具
登录
命名空间
页面
讨论
大陆简体
已展开
已折叠
查看
阅读
查看源代码
查看历史
更多
已展开
已折叠
搜索
导航
首页
社群首页
最近更改
随机页面
帮助
工具
链入页面
相关更改
特殊页面
页面信息