📄 shtags.1
字号:
.TH shtags 1 "local Utilities".SH NAMEshtags \- Create tags for shell scripts.SH SYNOPSIS.B shtags[\fI-mvw\fP] [\fI-t <file>\fP] [\fI-s <shell>\fP] <files>.SH DESCRIPTION\fBshtags\fP creates a \fBvi(1)\fP tags file for shell scripts - whichessentially turns your code into a hypertext document. \fBshtags\fPattempts to create tags for all function and variable definitions,although this is a little difficult, because in most shell languages,variables don't need to be explicitly defined, and as such there isoften no distinct "variable definition". If this is the case,\fBshtags\fP simply creates a tag for the first instance of a variablewhich is being set in a simple way, ie: \fIset x = 5\fP..SH OPTIONS.IP "\fB-t <file>\fP"Name of tags file to create. (default is 'tags').IP "\fB-s <shell>\fP"The name of the shell used by the script(s). By default,\fBshtags\fP tries to work out which is the appropriate shell for eachfile individually by looking at the first line of each file. This wontwork however, if the script starts as a bourne shell script and triesto be clever about starting the shell it really wants..bCurrently supported shells are:.RS.IP \fBsh\fPBourne Shell.IP \fBperl\fPPerl (versions 4 and 5).IP \fBksh\fPKorn Shell.IP \fBtclsh\fPThe TCL shell.IP \fBwish\fPThe TK Windowing shell (same as tclsh).RE.IP \fB-v\fPInclude variable definitions (variables mentioned at the start of a line).IP \fB-V\fPPrint version information..IP \fB-w\fPSuppress "duplicate tag" warning messages..IP \fB-x\fPExplicitly create a new tags file. Normally new tags are merged withthe old tags file..PP\fBshtags\fP scans the specified files for subroutines and possiblyvariable definitions, and creates a \fBvi\fP style tags file..SH FILES.IP \fBtags\fPA tags file contains a sorted list of tags, one tag per line. Theformat is the same as that used by \fBvi\fP(1).SH AUTHORStephen Riehm.brsr@pc-plus.de.SH "SEE ALSO"ctags(1), etags(1), perl(1), tclsh(1), wish(1), sh(1), ksh(1).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -