Hi, i didn't know what title to put so i put that one, sorry for not being clear. My problem is that i'm making my own shell, which uses the regular system commands, such as cd, ls, date,... and i'm looking for a way that it identifies !2 and executes the second command in the history, (the number is an example) I hace made some code in which it executes what i ask BUT in this form ! 2, and i need the ! to be next to the 2. I'm sorry i didn't explain myself. Anyone any idea? Thank you
use command line argument programs in C i.e using argv and argc...name each program as "cd", "date" , "ls" etc etc...The shell will itself be your console or cmd screen....if any parameters is to be passed then pass it to argv and argc....