mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-21 14:42:20 +08:00
Print expanded variables if -x
This commit is contained in:

committed by
Gregory Nutt

parent
d03aa9112e
commit
35cf98d4df
@@ -1169,6 +1169,11 @@ static FAR char *nsh_argexpand(FAR struct nsh_vtbl_s *vtbl, FAR char *cmdline,
|
||||
|
||||
envstr = nsh_envexpand(vtbl, ptr);
|
||||
|
||||
if ((vtbl->np.np_flags & NSH_PFLAG_SILENT) == 0)
|
||||
{
|
||||
nsh_output(vtbl," %s=%s\n", ptr, envstr ? envstr :"(null)");
|
||||
}
|
||||
|
||||
/* Concatenate the result of the operation with the accumulated
|
||||
* string. On failures to allocation memory, nsh_strcat will
|
||||
* just return value value of argument
|
||||
|
Reference in New Issue
Block a user