Reputation: 465
I want to do something like this:
C:\cygwin\bin\bash --some-switch date "+%Y-%m-%d %H:%M:%S" >> unit-tests-runs.log
Everything after bash is basically treated as if I'm in the shell.
Upvotes: 0
Views: 77
Reputation: 84343
-c
FlagYou need the -c
flag and some quotes. For example:
$ bash -c 'date "+%Y-%m-%d %H:%M:%S" >> unit-tests-runs.log'
Upvotes: 1