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

parseOpts兼容Bash 3.0 #44

Closed
oldratlee opened this issue Nov 15, 2014 · 0 comments
Closed

parseOpts兼容Bash 3.0 #44

oldratlee opened this issue Nov 15, 2014 · 0 comments
Assignees
Labels

Comments

@oldratlee
Copy link
Owner

支持bash 3.0,要修改2点:

  • local声明数组变量时 要加上 -a
  • += 不支持,即a+=xxx改成a="$a xxx"

多谢 @khotyn

  • 提出bash 3.0下使用有问题
  • 提供bash 3.0的测试机器,以完成环境测试

bash 3.0测试机器信息:

$ bash --version
GNU bash, version 3.00.15(1)-release (i386-redhat-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.
$ uname -a
Linux sofatest-1.stack.alipay.net 2.6.9-103.ELxenU #1 SMP Wed Mar 14 16:31:15 CST 2012 i686 i686 i386 GNU/Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant