copy values instead of memory copy

Signed-off-by: Jens Nyberg <jens.nyberg@gmail.com>
have pipe open before spawning in shell

Signed-off-by: Jens Nyberg <jens.nyberg@gmail.com>
better spawn handling

Signed-off-by: Jens Nyberg <jens.nyberg@gmail.com>
changed DP to P0 and P1

Signed-off-by: Jens Nyberg <jens.nyberg@gmail.com>