Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu版本下面,运行./phptrace脚本语法错误 #10

Closed
jiangwuzhang opened this issue Jan 7, 2015 · 0 comments
Closed

Ubuntu版本下面,运行./phptrace脚本语法错误 #10

jiangwuzhang opened this issue Jan 7, 2015 · 0 comments

Comments

@jiangwuzhang
Copy link

ubuntu下的/bin/sh 都是链到dash的,dash函数不需要function关键字

解决方法:
1.vim ./phptrace

!/bin/sh => #!/bin/bash

2.vim ./phptrace
去掉function关键词,还会有语法报错,127行($lines)不支持这种写法,改成$(lines)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants