Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by TimButterfield

  1. T

    Interesting Aliases

    Expediency. The single dot is just much less to type, one character instead of ten.
  2. T

    Take Command crashes on Windows 11

    With build 17, I am able to repeat this issue on two different Win11/ARM VMs, but not on Win11 Intel. But, no exception logs on either ARM install.
  3. T

    Take Command crashes on Windows 11

    There was no exception log file
  4. T

    Take Command crashes on Windows 11

    Just to update, I started no apps other than TCMD after starting Windows and there are no plugins or any add-ons in my TCMD install.
  5. T

    Take Command crashes on Windows 11

    I have Win 11Pro/ARM (Insider Preview) and am able to repeat it with these steps. TCMD closes and, when reopened, I can attach the previously opened TCC. There are two events in the application log. Log Name: Application Source: Application Error Date: 5/19/2023 1:02:46...
  6. T

    Interesting functions

    I have a set of calendar related functions that were posted in the alias thread as they used those aliases. There was also a function that used an alias to expand a set of args. Here's some other functions. :pad string with space (or other char) :padX[string,length[,char]] padl=`%@if[%2 LE...
  7. T

    Interesting Aliases

    Here is one for counting lines in a set of files. :count lines in a set of files countlines= & ^ iff %@len[%1] GT 0 then & ^ setlocal & ^ set count=0 & ^ for %f in (%$) set count=%@eval[%count + %@lines[%f] + 1] & ^ echo %count & ^ endlocal & ^...
  8. T

    Interesting Aliases

    Here are some aliases for getting calendar info: :get the Mon-Sun start date of the current week or specified date WeekStart=` & ^ setlocal & ^ set Arg=%1$ & ^ set d=%@date[%@if[%@len[%Arg] GT 0,%Arg,%_date]] & ^ do while %@dowi[%d] NE 2 (set d=%@dec[%d]) & ^ echo...
  9. T

    WAD CMD incompatibility

    Joe, I sometimes do the cmd /c ... in my TCC. It partly depends on whether it'll need elevated permissions or not; I don't often elevate TCC. I have wsl also, but had not tried running that within TCC, especially using the aliases. That's cool. Thanks for the ideas.
  10. T

    WAD CMD incompatibility

    I very rarely start CMD and then only because something doesn't work as expected under TCC. I live in TCMD/TCC, regularly using aliases, functions, BTMs, etc. If I change that habit, it will likely be because I am running tmux/bash/zsh on Linux instead.
  11. T

    WAD CMD incompatibility

    Thanks for the reminders on 'help conditional'. WHERE does find git and return a non-zero. Putting parens around the second pair of commands does work here, but exposes the next issue in a called batch file. TCC: C:\flutter\bin\internal\shared.bat [35] Unbalanced parentheses "& ( " Line 35 is...
  12. T

    WAD CMD incompatibility

    TCC 28.01.14 x64 Windows 10 [Version 10.0.19042.1237] TCC Build 14 Windows 10 Build 19042 In the Flutter language (Beautiful native apps in record time) install on Windows, there is a flutter.bat file that does not run in TCC, though it does run in CMD. The issue appears to be related to...
  13. T

    @execstr unicode support

    That worked. Thanks. It just seemed strange that, without the option change, it output unicode for one function, but not the other.
  14. T

    @execstr unicode support

    I am learning Russian and have a folder with the first name of my tutor. @execstr changes the Cyrillic characters to ???. C:\Users\tim\Documents\Language\яна> echo %@truename[new_vocab.txt] C:\Users\tim\Documents\Language\яна\new_vocab.txt C:\Users\tim\Documents\Language\яна> echo...
  15. T

    unqlite binary read test is inconsistent

    It's difficult to know undocumented intentions. The help for @BPEEKSTR says it is to 'Read a string from a binary buffer' and now you say don't. Thanks for adding some clarification here in the forum. I wish more of that were documented in the help. When I work with TCC, I don't default to...
Back
Top