问题描述
#!/bin/bash
read oldrev newrev ref
echo "$ref"
返回
remote: : not found
remote: : not found
remote: : not found
remote: : bad variable name
即使输入“ export PATH = $ PATH:/ bin / ... etc”也无济于事
解决方法
function test3(fn: (foo: string) => any): any;
function test3(fn: (foo: string,payload: number) => any): any;
function test3(fn: (foo: string,payload: number) => any) {
}
test3((foo) => 1); // Ok,typescript knows "foo" is a string
test3((foo,payload) => 1); // KO,typescript does not infer "foo" nor "payload" type
似乎可以解决问题。
但是,在我看来,这不是必需的,因为Debian buster以utf8为基础。 显然不是。 Git不应该使用基本的bash参数