3 ms·
Only thing I wish they could do is make calling Linux programs from Windows a bit more natural. Yeah "bash -c" works, but it's not exactly ideal.
by xienze 10y ago
Only thing I wish they could do is make calling Linux programs from Windows a bit more natural. Yeah "bash -c" works, but it's not exactly ideal.
- cpdt 10y agoI made a small project back when WSL was new to help tackle this, called Slinky: https://github.com/cpdt/slinky/ https://github.com/cpdt/slinky/ It allows you to run a command in the Windows prompt to 'link' a Linux command to a Windows one, allowing you to run the Windows command to run the Linux command (if that makes sense; the GIF in the Readme is probably better at explaining). It's written in Bash and Batch so doesn't require external dependencies.
- skynode 10y agoI think it's fine as is just so you even know/remember where you're running that command from. What's not exactly ideal is completely blurring the lines between both kernel syscalls.
- sratner 10y agoYou could always: C:\> doskey ls=bash.exe -c "ls $*" C:\> ls / bin cache dev home lib media opt root sbin srv tmp var boot data etc init lib64 mnt proc run snap sys usr