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
/* don't use this, it's just for a timing demonstration */ | |
public class ReturningException extends RuntimeException { | |
transient public final Object data; | |
transient public final Object context; | |
public ReturningException(Object o){ | |
this(null, o); | |
} | |
public ReturningException(Object c, Object o){ | |
super("Not really an exception"); |
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/sh | |
#Reorders $PATH, removes duplicates | |
prefixes="$1" | |
if [ '--' = "$prefixes" ]; then | |
shift; | |
prefixes="$1"; | |
else | |
if echo "$prefixes" | grep -q '^\(\|--help\|-h\)$' ; then |