Comments (2)
See rust-lang/rust#37519 for some history about the behaviour of Command::spawn()
on Windows. One useful suggestion from that issue is the which crate, which provides command resolution behaviour that may be closer to what CMD/PowerShell actually does to resolve executables.
Which Never mind, I see it's from git bashxargs
implementation are you using?
from fd.
Type: Additional information ➕
1. xargs + npx on Windows without WSL
When I run fd + npx CoffeeLint on Windows 11 without WSL, I get this output:
fd --print0 --extension coffee | xargs --null npx coffeelint
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
I don’t reproduce this behavior on continuous integration services perhaps because CIs have WSL pre-installed.
I think that WSL — too big dependency to run npx commands, and that it would be nice if Windows users without WSL could run npx commands use fd.
2. xargs implementation
Which
xargs
implementation are you using?
I added this information to my AppVeyor build. Yes, I used the xargs
command from Git for Windows.
I can’t resolve the WSL problem when I also use the xargs
command from Cygwin 3.5.1:
where xargs
D:\Chocolatey\tools\cygwin\bin\xargs.exe
D:\Chocolatey\tools\cygwin\bin\xargs.exe --version
xargs (GNU findutils) 4.9.0
Packaged by Cygwin (4.9.0-1)
Copyright (C) 2022 Free Software Foundation, Inc.
fd --print0 --extension coffee | D:\Chocolatey\tools\cygwin\bin\xargs.exe --null npx coffeelint
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
Thanks.
from fd.
Related Issues (20)
- Please provide a statically linked aarch64 version HOT 5
- [BUG] Full-path search and globbing leads to `fd` not exit on pipeline closing HOT 5
- [BUG] Installation failed on macOs HOT 3
- [BUG] --list-details fail on windows ( missing ls error ) while using nushell that has ls exposed
- [BUG] `--full-path` doesn't interpret with regexp `^` pattern HOT 2
- Shouldn't fd support using ~ as a subtitute for the home directory when writing paths? HOT 1
- List all directories in cwd, including '.' and '..' HOT 2
- Support timestamp in the format @%s (seconds since epoch) like GNU date HOT 1
- fdexclude/exclude configuration file, similar to fdignore/ignore configuration file HOT 2
- Adding an output mode with network-absolute paths HOT 2
- Filter files based on command output HOT 1
- [BUG] Incorrect application of `.gitignore` rules when using `fd` from a nested directory HOT 3
- [BUG] fd --glob seems wrong HOT 3
- Add clippy check to github actions CI HOT 2
- [BUG] Wrong result when --full-path and .. HOT 3
- `--all` argument HOT 2
- Ignore top level .gitignore HOT 3
- Chinese version of fd project HOT 2
- The file name containing "-- " could not be found HOT 3
- fd? fdfind? fdclone? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fd.