mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-22 16:09:01 +08:00
Print expanded variables if -x
This commit is contained in:
committed by
Gregory Nutt
parent
d03aa9112e
commit
35cf98d4df
@@ -136,7 +136,7 @@ int nsh_script(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
|
||||
* considerable amount of stack may be used.
|
||||
*/
|
||||
|
||||
if ((vtbl->np.np_flags & NSH_PFALG_SILENT) == 0)
|
||||
if ((vtbl->np.np_flags & NSH_PFLAG_SILENT) == 0)
|
||||
{
|
||||
nsh_output(vtbl,"%s", buffer);
|
||||
}
|
||||
@@ -144,7 +144,7 @@ int nsh_script(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
|
||||
ret = nsh_parse(vtbl, buffer);
|
||||
}
|
||||
}
|
||||
while (pret && (ret == OK || (vtbl->np.np_flags & NSH_PFALG_IGNORE)));
|
||||
while (pret && (ret == OK || (vtbl->np.np_flags & NSH_PFLAG_IGNORE)));
|
||||
|
||||
/* Close the script file */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user