I think this is the first time I've ever seen a tui run in windows -- I've not personally used windows since before I started learning to be a developer. This was an interesting look into the other world. It seems weird that there's nothing you have to do to execute a file in your CWD - if you had a `t.py` and a `t.js` file in the same workspace directory and just typed `t`, how would it know what to run? I'd assume it would depend on which extension is first in the PATHEXT?
@lokeshchandak3660 Жыл бұрын
Whichever is first in sequence. Atleast PATH respects the sequence, I'll have to look up if pathext does the same
@anthonywritescode Жыл бұрын
yep the first one wins
@p99chan992 ай бұрын
Just curious, would you not have the same exact functionality as cmd if you install powershell and just run it in a regular unix terminal emulator? Or it doesn't completely emulate all the ways of cmd.
@anthonywritescode2 ай бұрын
I would not expect PowerShell to have this behavior on posixlikes -- though pretty easy to try it and find out!
@jtw-r Жыл бұрын
would JScript (not javascript, JScript) be considered one of these extensions? Doesn’t it automatically launch cscript? it’s been a while since i’ve used windows, forgive me for my ignorance
@anthonywritescode Жыл бұрын
yeah it might be what handles .js
@fabtjar Жыл бұрын
Is there a reason to use command prompt over powershell? I though powershell was the replacement.
@anthonywritescode Жыл бұрын
not really -- just personal preference. I actually don't really like powershell and tend to use git bash myself
@fabtjar Жыл бұрын
@@anthonywritescode I thought it could only be used for git 😱 maybe looking at windows terminals would be an interesting video if you haven't already done one. I'm sure others are lost like me and use powershell because they think that's the only option
@mrswats Жыл бұрын
Windows is wired. This only makes me not wanna code in Windows😂(even less than I already which is null)