BASH to KSH

I have a script in KSH and now need to incorporate this into another script which is in BASH. OUr script contains code like below in good number of places.

Eg: echo �A B C� | read VAR1 VAR2 VAR3

This works only in ksh and not in BASH. Please let me know

  1.  Which is the equivalent of the above in BASH. 
    

Or
2. Is it possible to switch from BASH to KSH with in the same script so that our code works fine.

Looking for your help as we are in a critical stage. THanks a lot in advance.

At the start of both scripts, let them know how they should run i.e. interpreter.
For bash, put first line as #!/bin/bash
Write down your logic.
Call ksh script.
In ksh script, put first line as #!/bin/ksh
Once ksh exits, control will be regained by bash.

Note: Location of ksh and bash can vary depending upon system.
You need to study further, if scripts are passing data to each other.

It would be better if you provide complete flow with code (if feasible).

Thanks for your reply. We need to change from BASH to KSH with in the same script. Reason being some of the environment related settings are done using BASH.

  1. read VAR1 VAR2 VAR3 <<<$(echo A B C)
  2. No