Apr
4
awarded  Enthusiast
Feb
5
awarded  Scholar
Feb
5
accepted Executing scripts with bash from vim
Feb
5
comment Executing scripts with bash from vim
I was trying to save the extra step, anyway, I think I will stick to the script way and maybe edit it to read the shebang line as suggested by Daniel, this allows me to execute scripts that are non-executable or don't have a shebang at all.
Feb
5
awarded  Supporter
Feb
5
comment Executing scripts with bash from vim
it seems that I have to chmod the script if I want this to work, thanks.
Feb
5
comment Executing scripts with bash from vim
@Thor yes but not all scripts I edit are executable yet, sometimes I open vim and write the script and want to execute before chmod'ing it or I open a non-executable script, but I think I understand now why bash doesn't execute the script.
Feb
5
comment Executing scripts with bash from vim
@DanielBeck yes this is exactly what's happening, any way around that ? also not all scripts are executable and I don't want to chmod them...
Feb
5
awarded  Teacher
Feb
5
asked Executing scripts with bash from vim
Dec
25
answered Does running the 'find' command fork a new process?