--- freem/src/xecline.c 2025/03/09 19:50:47 1.5 +++ freem/src/xecline.c 2025/03/22 22:52:24 1.7 @@ -1,5 +1,5 @@ /* - * $Id: xecline.c,v 1.5 2025/03/09 19:50:47 snw Exp $ + * $Id: xecline.c,v 1.7 2025/03/22 22:52:24 snw Exp $ * freem interpreter proper * * @@ -24,6 +24,12 @@ * along with FreeM. If not, see . * * $Log: xecline.c,v $ + * Revision 1.7 2025/03/22 22:52:24 snw + * Add STRLEN_GBL macro to manage global string length + * + * Revision 1.6 2025/03/22 21:44:32 snw + * Make the startup messages fewer and add environment name to direct-mode prompt + * * Revision 1.5 2025/03/09 19:50:47 snw * Second phase of REUSE compliance and header reformat * @@ -1071,8 +1077,8 @@ set: goto err; } - expr (STRING); - + expr (STRING); + if (merr () > OK) goto err; stcpy (tmp2, argptr); @@ -7205,10 +7211,10 @@ direct_mode: if (quiet_mode == FALSE) { if (tp_level == 0) { - snprintf (fmrl_prompt, 255, "\r\n%s> ", nsname); + snprintf (fmrl_prompt, 255, "\r\n%s.%s> ", shm_env, nsname); } else { - snprintf (fmrl_prompt, 255, "\r\nTL%d:%s> ", tp_level, nsname); + snprintf (fmrl_prompt, 255, "\r\nTL%d:%s.%s> ", tp_level, shm_env, nsname); } } set_io (UNIX);