Permalink
Browse files

Make bin/e work with more shells.

Revision is similar to pull request #49 in that it more strictly follows
the POSIX standard for shell scripts by not using "test". Small change,
but it means bin/e will work with more shells on more systems (e.g.
Ubuntu 8+ which links /bin/sh to /bin/dash by default).
  • Loading branch information...
1 parent e674c79 commit 1fa01857af73ea5c61c149a9463ed5b758024e98 @dplarson dplarson committed Dec 15, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 bin/e
View
3 bin/e
@@ -14,8 +14,7 @@
# $ e /usr/local
# # => opens the specified directory in your editor
-if test "$1" == ""
-then
+if [ "$1" == "" ] ; then
exec $EDITOR .
else
exec $EDITOR "$1"

0 comments on commit 1fa0185

Please sign in to comment.