问题现象
在windows下使用git bash执行shell命令
$ chmod +x test.sh -rw-r--r-- 1 OME 997 Apr 21 10:08 test.sh
shell脚本前面没有加上#!/bin/bash
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/220837.html原文链接:https://javaforall.net
git bash使用chmod不生效问题现象在 windows 下使用 gitbash 执行 shell 命令 chmod xtest sh rw rr1OMEApr211 08test sh 问题原因 shell 脚本前面没有加上 bin bash
问题现象
在windows下使用git bash执行shell命令
$ chmod +x test.sh -rw-r--r-- 1 OME 997 Apr 21 10:08 test.sh
shell脚本前面没有加上#!/bin/bash
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/220837.html原文链接:https://javaforall.net