aurora / rmate

Remote TextMate 2 implemented as shell script
GNU General Public License v3.0
887 stars 123 forks source link

v1.0.2 raises a syntax error; v1.0.1 works #81

Closed roussanoff closed 6 months ago

roussanoff commented 3 years ago

I recently had to set up my remote server again. The newly-downloaded rmate stopped working. I get the following error:

[user@log-1 ~]$ rmate example.txt
~/bin/rmate: line 81: syntax error near unexpected token `$home/."${0##*/}.rc"'
~/bin/rmate: line 81: `$home/."${0##*/}.rc"; do'

If I use v1.0.1 from Jan 8, 2018, I do not get this error and my Sublime Text successfully opens example.txt.

I am not an experienced user in shell scripting. I can provide more information if necessary.

aurora commented 2 years ago

sorry for the late reply ... mmm ... i am unable to reproduce this, 1.0.2 runs quite fine for me. I am not sure, how to track this issue down; could you insert a echo $home just before the for loop in row 80 and tell me the output? thanks!