In this code:
#!/bin/sh
a='sdsdsd'
c=${a:0:1}
I use second line to read bytes of string one by one (in a loop), but it returns error in sh ("sh: 3: Bad substitution"). any way to do it in sh mode? for some reasons i should use sh (not bash, and i know bash will be OK)