sup all...
im tring to creat a simple shell program.. and someone told me that i need to add some arrayz..
i have posted this in the linux forum.. anywayz...
lets say if i wanted to put "ls" "cat" "pwd" and lets not forgoet "[blah@blah]$" now how can i put all of the commands in to one array so i wont have to do it this way....
what is the best way for me to do this... and also what is the best way for me to keep [blah@blah]$ stay on the screen and waiting for a command to be tipe.. cause lets say if i was to type in ls i want it to show me the home dir that i am going to add... so all im asking is just for a simple code on how to work my way around this..Code:vid shell(void); char x[] = ls; char y[] = pwd; char z[] = cat; void shell(void) { printf("[blah@blah]"); }