Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doskey is not working #428

Closed
AloisKraus opened this issue Aug 4, 2023 · 10 comments · Fixed by #437
Closed

doskey is not working #428

AloisKraus opened this issue Aug 4, 2023 · 10 comments · Fixed by #437

Comments

@AloisKraus
Copy link

When having a file with doskey macros

keys.txt

k1=echo hi
k2=echo hi2

doskey /macrofile=keys.txt
and then list the defined ones the list comes back empty when running vtm inside Windows Terminal:

With vtm
image

when doing this in a Windows Terminal cmd prompt then it works

With cmd.exe
image

No errors. That is really strange.

@o-sdn-o

This comment was marked as outdated.

@AloisKraus
Copy link
Author

While you are right it might be a security flaw many developer environments set them. It is unfortunate that I cannot use vtm in developer shells. As long not everyone is using Windows Terminal there is not much we could use for cmd shell scripting.

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Aug 4, 2023

We can make this configurable and off by default.

@AloisKraus
Copy link
Author

That would be a great addition!

o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 10, 2023
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 11, 2023
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 11, 2023
@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Oct 11, 2023

I have now realized that this is vital functionality, and it must be implemented unconditionally.

o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 11, 2023
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 11, 2023
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 11, 2023
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 11, 2023
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 11, 2023
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 13, 2023
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 13, 2023
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 13, 2023
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 13, 2023
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 13, 2023
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 13, 2023
@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Oct 13, 2023

I implemented the DOSKEY functionality. You can test the branch from the pull request. I'll publish a release a little later.

o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 14, 2023
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 14, 2023
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 15, 2023
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 15, 2023
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 15, 2023
@AloisKraus
Copy link
Author

Thanks. The test build looks good. Doskey macros are showing up now. Thanks!

@AloisKraus
Copy link
Author

My environment has VS2019, VS2022, VS2022 Preview, and VS2017 Build tools. Looks like cmake did create a solution which did target VS2019. It was targetting Build Tools 14.3, but these were not installed.

@AloisKraus
Copy link
Author

I have noticed that the new vtm when started from a Windows Terminal Session with a cmd shell

vtm -r
Not enough memory resources are available to process this command.

is showing up. The old VTM did not have this warning.

o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 16, 2023
@o-sdn-o

This comment was marked as outdated.

o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants