You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
250 B

  1. #!/bin/bash
  2. exname=$(basename $0)
  3. prefix_cmd="
  4. . /etc/shlib
  5. include common
  6. include parse
  7. . ../lib/common
  8. "
  9. try "echo '
  10. x: 1
  11. y:
  12. a: 4
  13. b: 3
  14. ' | yaml_opt_bash_env PREFIX | tr '\0' ':'"
  15. noerror
  16. is out 'PREFIX_X:1:PREFIX_Y_A:4:PREFIX_Y_B:3:'