Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこのようなことをしたい:
C:\cygwin\bin\bash --some-switch date "+%Y-%m-%d %H:%M:%S" >> unit-tests-runs.log
基本的に bash 以降はすべて、シェル内にいるかのように扱われます。
-c
フラグと引用符が-c必要です。例えば:
$ bash -c 'date "+%Y-%m-%d %H:%M:%S" >> unit-tests-runs.log'