ieng6
<up><enter>
ssh cs15lsp23if@ieng6.ucsd.edu
ieng6
, I typed in the command ssh cs15lsp23if@ieng6.ucsd.edu
to remotely connect to the server. Since I had setup an SSH key to log into this account, I didn’t need to type in my password this time and was able to login immediately.<Ctrl>
r + ‘git cl’ + <enter>
git clone git@github.com:jxnlee/lab7.git
<Ctrl>
r to search through my history of commands and type the first few letters of the command in order to fully type the command git clone git@github.com:jxnlee/lab7.git
to clone the repository.<tab><enter>
+ <Ctrl>
r + ‘ba’ + <enter>
cd lab7
+ bash test.sh
lab7
, since I knew this directory was now in my current directory and was the only one that started with the letter ‘l’, I only needed to type cd
+ ‘l’ to change the directory to lab7
. To run the tests, I simply needed to search through my history of commands with <Ctrl>
r with the first few letters for the command bash test.sh
to run the tests. As indicated in the screenshot, there is a bug in the ListExamples.merge method which produces an error in the testMerge2 test.<Ctrl>
r + ‘vi’ + <enter>
vim ListExamples.java
vim
for ListExamples.java. Since I had performed this task earlier, I searched through my history of commands with <Ctrl>
r along with the first few letters of the vim ListExamples.java
command to access the code.<enter><down><right><right>
+ ‘x’ + ‘i’ + ‘2’ + <esc>
+ ‘:wq’/
to use the search command in vim to locate the word “change” and navigated to its location with the first few characters. Then I used the arraow keys to navigate specifically to where the bug is located, pressed the x
command to delete the character ‘1’ in ‘index1’, entered ‘insert mode’ with the vim command i
and then replaced the deleted character with ‘2’. To save these changes, I exited insert mode by pressing <esc>
and typed the :wq
command, which saves the changes and quits vim.<Ctrl>
r + ‘ba’ + <enter>
bash test.sh
bash test.sh
command with <Ctrl>
r. As shown in the screenshot, all tests successfully passed.<Ctrl>
r + ‘git a’ + <enter>
+ <Ctrl>
r + ‘git c’ + <enter>
+ <Ctrl>
r + ‘git p’ + <enter>
git add ListExamples.java
+ git commit -m "Fixed ListExamples"
+ git push origin main
<Ctrl>
r and the first few letters of each command. So <Ctrl>
r + ‘git a’ typed the it add ListExamples.java
command, <Ctrl>
r + ‘git c’ typed the git commit -m "Fixed ListExamples"
command, and <Ctrl>
r + ‘git p’ typed the git push origin main
. The first one added the file to the changes that needed to be committed and pushed, the second command commits the results, and the last command pushes the results to the repository to save the changes to the main branch.Note: Since I had performed the tasks in the account earlier, I am able to quickly put in the commands by searching through my history, otherwise I would alternatively type in the commands as I would normally without the history