Document terminal subshell command !<line>

This commit is contained in:
Stefan Rueger
2023-06-13 00:15:11 +01:00
parent 64a4bb18bd
commit 27f49f64f2
3 changed files with 9 additions and 1 deletions

View File

@@ -1162,6 +1162,9 @@ Leave terminal mode and thus
.Nm avrdude .
.It Ar q
Can be used as an alias for quit.
.It Ar !<line>
Run the shell <line> in a subshell, eg, !ls *.hex. Subshell commands are
always complete lines on their own.
.El
.Pp
The terminal commands below may only be implemented on some specific programmers, and may therefore not be available in the help menu.

View File

@@ -2281,6 +2281,11 @@ Leave terminal mode and thus AVRDUDE.
@item q
Can be used as an alias for @code{quit}.
@item !@var{line}
Run the shell @var{line} in a subshell, eg, @code{!ls *.hex}. Subshell
commands are always complete lines on their own.
@end table
@noindent

View File

@@ -1675,7 +1675,7 @@ static int cmd_help(const PROGRAMMER *pgm, const AVRPART *p, int argc, char *arg
term_out(cmd[i].desc, cmd[i].name);
term_out("\n");
}
term_out(" !<scmd> : run the command <scmd> in a subshell, eg, !ls\n\n"
term_out(" !<line> : run the shell <line> in a subshell, eg, !ls *.hex\n\n"
"For more details about a terminal command cmd type cmd -?\n\n"
"Note that not all programmer derivatives support all commands. Flash and\n"
"EEPROM type memories are normally read and written using a cache via paged\n"