Home > OS >  Help: in the end device to perform sh script, with an array of the line will be submitted to the gra
Help: in the end device to perform sh script, with an array of the line will be submitted to the gra

Time:11-24

Push shell script to execute equipment end, as long as there is an array (currently only found an array of problems), will be submitted to the grammatical errors,

For example:

P=${array [$t]}

Error: syntax error: bad substitution

Use command-line execution no problem, push to the execution on the other phone is no problem, just an error on part of the mobile phone, is there a problem is the array way? Array can also how to write?

CodePudding user response:

Bash version

CodePudding user response:

reference 1st floor mouse_zhu response:
why bash version


Interpreter is all on your mobile phone/system/bin/sh, why still some phone support array, some mobile phone does not support?

CodePudding user response:

To version, you can only be the interpreter of reasons for this problem, I have met before

CodePudding user response:

There are so many, named zhang SAN is the same person?
  • Related