Mercurial > vim
view src/which.sh @ 11794:2e7e77e28063 v8.0.0779
patch 8.0.0779: :term without an argument uses empty buffer name
commit https://github.com/vim/vim/commit/293424c199615b774365db9b412209b102cdfe20
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 26 23:11:01 2017 +0200
patch 8.0.0779: :term without an argument uses empty buffer name
Problem: :term without an argument uses empty buffer name but runs the
snell.
Solution: Change the command to the shell earlier.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 26 Jul 2017 23:15: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