From: Robert D. <rob...@us...> - 2023-02-04 21:00:43
|
I'm running into an error in make, something about "unterminated shell command". It doesn't appear to be coming from egrep -- I tried the commands in question (`egrep -v '/\.#'` and `egrep -v '~|#'`) and they both work without error. I guess it must be either make or bash or whatever shell is invoked by make. For the record, make --version reports GNU Make 3.81, bash --version reports GNU bash, version 4.3.11(1). sh doesn't recognize --version. Looks like /bin/sh is linked to dash, and dpkg-query reports dash version is 0.5.7-4ubuntu1. This is an ancient Ubuntu (14.04) system. I'll try to point /bin/sh at a hopefully less idiosyncratic replacement. --- ** [bugs:#4094] Build warning in share: grep: warning: stray \ before #** **Status:** closed **Group:** None **Created:** Mon Jan 30, 2023 11:33 AM UTC by David Billinghurst **Last Updated:** Thu Feb 02, 2023 01:39 PM UTC **Owner:** David Billinghurst There are several harmless build warnings in the share subdirectory. ~~~ grep: warning: stray \ before # ~~~ It is generated in the system call to generate make variable sharefiles. A web search didn't find any need to escape '#' in an extended grep regex. The fix is trivial. Tested with GNU egrep. I wonder if it will be a problem with other versions of egrep. ~~~ diff --git a/share/Makefile.am b/share/Makefile.am index f56124228..5681b5872 100644 --- a/share/Makefile.am +++ b/share/Makefile.am @@ -7,8 +7,8 @@ egrep -v 'CVS|Makefile(\.in|\.am)?|^\./Makefile|\.gitignore|\.gitattributes' | \ egrep -v '/fortran/' | \ egrep -v 'colnew/ex./' | \ egrep -v 'lbfgs/.*\.f' | \ -egrep -v '/\.\#' | \ -egrep -v '~|\#' | \ +egrep -v '/\.#' | \ +egrep -v '~|#' | \ sed -e 's%\./%%' | \ sort -f -d | \ sed '$$s/\\$$//' ) ~~~ --- Sent from sourceforge.net because max...@li... is subscribed to https://sourceforge.net/p/maxima/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/maxima/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |