0

how to interpreter form bash to sh for FreeBSD this code

DBNAME="spcity; home; backup"
read -a databases <<< "${DBNAME}"
Michail M.
  • 735
  • 5
  • 11
  • 1
    The here string is easy to replace with a here document, but `sh` doesn't have arrays. You'll need to provide more context about how `databases` is used to pick a suitable replacement. – chepner Nov 21 '13 at 14:20
  • @glennjackman Ignore my comment, (it was incorrect), the correct way to change your shell (which is what I assume, OP is trying to do) is: http://stackoverflow.com/a/13046283/1220089 – ffledgling Nov 21 '13 at 17:54
  • it is hard because OS is FreeBSD 8.3. and i don't had some packets for install bash shell. – Michail M. Nov 22 '13 at 05:45
  • databases it is array of database for backup each – Michail M. Nov 22 '13 at 05:56
  • easy way it is interpreter this bash script to php script – Michail M. Nov 22 '13 at 05:57

0 Answers0