0
I have a script that updates GIT wc alone, by scheduled task in Windows. To do this, I use Cygwin by convenience. But I have a problem, because the ssh in Cygwin give this error:
percent_expand: unknown key %H
After some search, I found some answers saying this problem happens because of HOME variable. Well, when I start the CygWin by the shortcut in Desktop, this is the result
$ echo $HOME
/cygdrive/h/
When I do this executing the task in Task Scheduler the result is this:
$ echo $HOME
/usr/bin/%HOMEDRIVE%%HOMEPATH%
I don't know how to give the same value to both situations.
1Probably because you aren’t loading the (Cygwin) profile. – Daniel B – 2016-10-04T20:39:31.620
1the shortcut launch a login shell. From mintty manual "If a dash is given instead of a program, invoke the shell as a login shell." – matzeri – 2016-10-05T04:12:05.710