I having trouble debugging the folowing code I want to get all items in the hisory from processHIstory() functioon but i am getting undesired result
here is what i am tring to do assume user enters the folowong ...
>> ls
>> pwd
>> clear
then history array will be
histrory= {"ls","pwd","clear"}
and when user wants history like this
>>!!
I need all histories to displaylike
ls
pwd
clear
but I am getiing the folowing now
!!
!!
!!
what is my problem?please help me.
Here is the git link to my code! GIST
thank you.
*history++withhistory[i]?