Command Substitution is Sorely Needed #12614

Open
opened 2026-01-31 03:20:18 +00:00 by claunia · 0 comments
Owner

Originally created by @zQueal on GitHub (Feb 16, 2021).

Description of the new feature/enhancement

Microsoft Terminal deserves command substitution. It's a sorely missed feature on the Windows platform. To the best of my knowledge there's simply no way to do it on Windows at all, let alone in a sane way. I tried searching tickets here and saw no other calls for this feature, so I wanted to open a feature request.

Proposed technical implementation details (optional)

As a simple example, I wanted to delete any text file in the current directory which contained config and was a text file. Using fd I can find them all by executing;

fd config -t file -e txt

But as far as I understand it there's no way to use command substitution to remove these files in a single command as you would do on any other modern platform;

rm $(fd config -t file -e txt)

Transactional commands feel really old and if you're frank with yourself, just a plain bad way to do things most of the time.

Originally created by @zQueal on GitHub (Feb 16, 2021). # Description of the new feature/enhancement Microsoft Terminal deserves command substitution. It's a sorely missed feature on the Windows platform. To the best of my knowledge there's simply no way to do it on Windows at all, let alone in a sane way. I tried searching tickets here and saw no other calls for this feature, so I wanted to open a feature request. # Proposed technical implementation details (optional) As a simple example, I wanted to delete any text file in the current directory which contained `config` and was a text file. Using [`fd`](https://github.com/sharkdp/fd) I can find them all by executing; fd config -t file -e txt But as far as I understand it there's no way to use command substitution to remove these files in a single command as you would do on any other modern platform; rm $(fd config -t file -e txt) Transactional commands feel really old and if you're frank with yourself, just a plain bad way to do things most of the time.
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-FixResolution-Won't-Fix labels 2026-01-31 03:20:18 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12614