This is because rerun runs the given command using subprocess, which defaults to running it under /bin/sh.
Instead rerun should pass 'executable=' to subprocess.call() or Popen.
User's current shell is available at the command prompt as $0, but I'm not sure how rerun, as a child processes can access that. Perhaps we should use the user's default shell instead?
Doing rerun on shell aliases or functions fails:
This is because rerun runs the given command using subprocess, which defaults to running it under /bin/sh.
Instead rerun should pass 'executable=' to subprocess.call() or Popen.
User's current shell is available at the command prompt as $0, but I'm not sure how rerun, as a child processes can access that. Perhaps we should use the user's default shell instead?