Browse files

• make the return code that of ‘cmake’ instead of ‘grep’.

In the future TextMate will react on non-zero return codes from commands, so we want to ensure commands have a well defined one — in this case, the return code was that of ‘grep’ which returns 1 when no matches are found.

git-svn-id: dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
sorbits committed Apr 13, 2009
1 parent 142c6ac commit 1f91d07daddd8408d25c7d4e590de348e1350be1
Showing with 1 addition and 1 deletion.
  1. +1 −1 Preferences/Completions.tmPreferences
@@ -13,7 +13,7 @@
# Commands are by convention written in all uppercase, but the command list is given in lowercase,
# so we print both to enable people to use either
# The first line is always the CMake executable version, so it gets stripped off
- cmake --help-command-list | tail -n+2 | tee >(tr "[a-z]" "[A-Z]") | grep "^$TM_CURRENT_WORD"
+ cmake --help-command-list >( tail -n+2 | tee >(tr "[a-z]" "[A-Z]") | grep "^$TM_CURRENT_WORD" )

0 comments on commit 1f91d07

Please sign in to comment.