Skip to content
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: http://svn.textmate.org/trunk/Review/Bundles/CMake.tmbundle@11469 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 142c6ac commit 1f91d07daddd8408d25c7d4e590de348e1350be1 @sorbits sorbits committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 Preferences/Completions.tmPreferences
View
2 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" )
</string>
</dict>
<key>uuid</key>

0 comments on commit 1f91d07

Please sign in to comment.
Something went wrong with that request. Please try again.