ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
difference.sh: 42: Bad substitution
difference.sh: 42: ARRs[k]=1: not found
difference.sh: 42: ARRs[k]=2: not found
difference.sh: 42: ARRs[k]=3: not found
what shell are you using? bash, ksh, zsh or just plain bourne shell?
this will show you a trace of the actual commands executed by the shell after shell's substitutions. This is useful for debugging. And please post the result of the above here. You know... we are really curious! Also, what is the actual content of the directory $CPFs?
this will show you a trace of the actual commands executed by the shell after shell's substitutions. This is useful for debugging. And please post the result of the above here. You know... we are really curious! Also, what is the actual content of the directory $CPFs?
Thanks,
the error only shows when I try using sh script.sh, It will not showing when I tried with bash script.sh or with ./script.sh
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.