Created
December 5, 2015 03:17
-
-
Save cdaringe/d76b90a8a4522a4d8d02 to your computer and use it in GitHub Desktop.
bambam
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function bamtest { | |
tmpdir=`mktemp -d` | |
trap 'rm -rf "$tmpdir"' exit | |
PATH="$tmpdir:$PATH" | |
echo $PATH | |
ln -s "ls" "$tmpdir"/bam | |
echo `ls -al $tmpdir` | |
echo `bam` # <== hmm, not being executed, what gives? | |
} | |
bamtest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment