Mercurial > vim
view src/which.sh @ 22563:48454576b23c v8.2.1830
patch 8.2.1830: MS-Windows: Python3 issue with stdin
Commit: https://github.com/vim/vim/commit/c6ed254d9fda0ff54cdedce5597ff3e0d0218d18
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 10 23:26:28 2020 +0200
patch 8.2.1830: MS-Windows: Python3 issue with stdin
Problem: MS-Windows: Python3 issue with stdin.
Solution: Check if stdin is readable. (Ken Takata, closes https://github.com/vim/vim/issues/7106)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 10 Oct 2020 23:30:04 +0200 |
parents | 3fc0f57ecb91 |
children |
line wrap: on
line source
#! /bin/sh # # which.sh -- find where an executable is located. It's here because the # "which" command is not supported everywhere. Used by Makefile. IFS=":" for ac_dir in $PATH; do if test -f "$ac_dir/$1"; then echo "$ac_dir/$1" break fi done