Skip to content

Instantly share code, notes, and snippets.

@jontonsoup
Created October 26, 2012 20:29
Show Gist options
  • Save jontonsoup/3961301 to your computer and use it in GitHub Desktop.
Save jontonsoup/3961301 to your computer and use it in GitHub Desktop.
RUN EXTRA CREDIT TEST CASES
test26: FAILED
Input:
alias showdir='echo ls'
showdir
exit
-- HOW IT SHOULD BE ------------------------------------------------------------ YOUR PROGRAM --------------------------------------------------------------
ls <
------------------------------------------------------------------------------------------------------------------------------------------------------------
test27: FAILED
Input:
alias showdir='echo ls'
showdir
unalias showdir
showdir
exit
-- HOW IT SHOULD BE ------------------------------------------------------------ YOUR PROGRAM --------------------------------------------------------------
ls <
/bin/bash: line 6: showdir: command not found <
------------------------------------------------------------------------------------------------------------------------------------------------------------
test28: FAILED
Input:
unalias dir1
exit
-- HOW IT SHOULD BE ------------------------------------------------------------ YOUR PROGRAM --------------------------------------------------------------
/bin/bash: line 3: unalias: dir1: not found <
------------------------------------------------------------------------------------------------------------------------------------------------------------
test29: FAILED
Input:
alias showdir='ls'
alias foo='ls -lh'
alias test='whoami'
alias
unalias showdir
unalias foo
unalias test
exit
-- HOW IT SHOULD BE ------------------------------------------------------------ YOUR PROGRAM --------------------------------------------------------------
alias foo='ls -lh' <
alias showdir='ls' <
alias test='whoami' <
------------------------------------------------------------------------------------------------------------------------------------------------------------
test30: FAILED
Input:
alias showdir='ls '
alias home='~/'
showdir home
unalias showdir
unalias home
exit
-- HOW IT SHOULD BE ------------------------------------------------------------ YOUR PROGRAM --------------------------------------------------------------
C:\nppdf32Log\debuglog.txt <
Desktop <
Documents <
Downloads <
d.tcpdump <
dump1.tcpdump <
eecs340 <
Music <
Pictures <
project1 <
Public <
public_html <
Shell-Lab <
Templates <
t.tcpdump <
Videos <
www <
------------------------------------------------------------------------------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment