Using linux binary command instead windows binary command. Make cygwin downloaded package as priority.
programming
shell
,
windows
,
linux
Important syntax to make cygwin as priority
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH";
Example make cygwin as priority in bash script
#!/usr/bin/env bash
#sh -c 'rm -rf node_modules/a* & wait'
# make cygwin bin as priority
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH";
# Your code here