Hello everyone,
so I am trying to make a custom linux shell in golang, among other things, 
I want this shell to be able to run BASH shell.

Like when we are prompted with sh shell
$
executing /bin/bash, provides bash prompt
$ /bin/bash
user@hostName:~#

similarly, I want my golang shell to provide me with bash shell
myPrompt> /bin/bash
user@hostName:~#

I have tried multiple things:
1. Replicating bash prompt, when /bin/bash is received, and getting 
os.Stdin, and executing using os/exec Output() function.
2. Trying to make stdpipes and then channel input/output via them, while 
using cmd.Start() and cmd.Waint().

these did not help, I am looking for some help from the experts.
Thank you if you read this.
Super thank you, if you have a solution :).

PFA: My shell.go file. 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/fa86ccc6-c847-4c8f-bea3-65b938b0d4cdn%40googlegroups.com.

Attachment: shell.go
Description: Binary data

Reply via email to