我正在尝试本周最后一个星期一的月份编号。我得到它来检查一周中的哪一天,如果它不是星期一,那么减去x天并将该新日期设置为变量值。 我遇到的麻烦是将此变量格式化为仅获取月份。一切正常,除了下面的第二行到最后一行。 startDate=$(date)
weekDayNum=$(date +'%u') # 1 is Monday
# If today is NOT Monday
if [ week
我试图用OpenBSD 6.1构建我的代码,但是我得到了这个错误信息。 sh.h:98:20: error: termio.h: No such file or directory
In file included from edit.c:1:
sh.h:235: error: conflicting types for 'rlim_t'
/usr/include/sys/types.h:1