📄 hackers
字号:
HACKERS=======NOTE - This doc is probably OUT OF DATEThis document contains an overview of all variables used, and what subroutinesdo and take as arguments, and what filehandles are what.Filehandles===========NAME: CONFIGFILE: ~/.bloatrc OR /etc/bloatrcPURPOSE: The config file (if one exists)NOTES: ~/.bloatrc has a higher priority than /etc/bloatrcVariables=========NAME: $opentestTYPE: BooleanPURPOSE: Used to test whether open()s work.SCOPE: GlobalNAME: $closetestTYPE: BooleanPURPOSE: Used to test whether close()s work.SCOPE: GlobalNAME: $teststringTYPE: StringPURPOSE: Used when testing for utilities; contains compressed forms of "bloatcheck".SCOPE: Global NAME: $filenameTYPE: StringPURPOSE: Contains the filename bloat is to work onSCOPE: GlobalNAME: $filetypeTYPE: StringPURPOSE: Holds the filetype, as used by bloatSCOPE: GlobalNAME: $versionTYPE: String (numeric)PURPOSE: Contains the version number of bloatSCOPE: GlobalNAME: $verboseTYPE: BooleanPURPOSE: Controls whether bloat should provide verbose output or notSCOPE: GlobalNAME: $bloatsignTYPE: StringPURPOSE: Provides the string to prefix any outputSCOPE: GlobalNAME: $stopTYPE: BooleanPURPOSE: Used for handling stopping; at certain points, if this is true, bloat will stop (used, e.g., when $check is true).SCOPE: GlobalNAME: $checkTYPE: BooleanPURPOSE: If --check is passed to bloat, this will be set to true and utility checking will occur.SCOPE: GlobalNAME: $errorTYPE: BooleanPURPOSE: Becomes true if there's an error.SCOPE: Global, also used in extractFileNAME: $nowarnTYPE: BooleanPURPOSE: If the user does not want to be warned about missing utilities (for some odd reason), and has a /etc/bloat-nowarn or ~/.bloat-nowarn this becomes 1.SCOPE: GlobalNAME: $checkforsubdirsTYPE: BooleanPURPOSE: Controls whether subdirectories should be checked for in zip and tar based archives.SCOPE: GlobalNAME: $getcontentsTYPE: StringPURPOSE: Provides the command needed to view the contents of an archiveSCOPE: GlobalNAME: $typeTYPE: StringPURPOSE: Used when checking for subdirectories, to get the output formatSCOPE: GlobalNAME: $longtypeTYPE: StringPURPOSE: Provides a user-friendly name for the archive formatSCOPE: GlobalNAME: $extractcmdTYPE: StringPURPOSE: Provides the command needed to extract the archiveSCOPE: GlobalNAME: $fileextTYPE: String (joined with "o_O")PURPOSE: Passed to extractFile to specify what the file's possible extensions areSCOPE: GlobalNAME: $checksdirTYPE: BooleanPURPOSE: Set to true if an archive _can_ be checked for subdirectoriesSCOPE: GlobalNAME: $custcmdTYPE: BooleanPURPOSE: Set to true if an archive uses ugly/complex extraction techniques; hides the actual commands from the userSCOPE: GlobalNAME: $mknewdirTYPE: BooleanPURPOSE: Set to true if a new directory is to be createdSCOPE: GlobalNAME: %locTYPE: Hash, contains stringsPURPOSE: Contains the locations of extraction utilities (e.g. $loc{tar} provides the location of tar).SCOPE: GlobalNAME: $optionTYPE: StringPURPOSE: Contains the currently-processed argument given to bloatSCOPE: Only used in checkForArgsNAME: @inputTYPE: Array of argumentsPURPOSE: Contains the <STRINGS> given in &subName(<STRINGS>);SCOPE: Only used in checkForSubdirs and extractFile (different variables in different subroutines)NAME: $hasitgotstuffoutofsubdirsTYPE: BooleanPURPOSE: Set to true if there are files in the "root" directory of an archiveSCOPE: Only used in checkForSubdirsNAME: @listofstuffTYPE: Array of stringsPURPOSE: Contains the results of running $getcontentsSCOPE: Only used in checkForSubdirsNAME: $lineTYPE: StringPURPOSE: Contains the currently-processed line in @listofstuffSCOPE: Only used in checkForSubdirsNAME: @fileextTYPE: Array of stringsPURPOSE: An array-ised version of $fileextSCOPE: Only used in extractFileNAME: $doneextractTYPE: BooleanPURPOSE: Set to true when the file has been extractedSCOPE: Only used in extractFileNAME: $devnullTYPE: StringPURPOSE: Normally ">/dev/null", unset if $verbose is true.SCOPE: Only used in extractFileNAME: $dirnameTYPE: StringPURPOSE: If a new directory is to be created, it will be called "$dirname"SCOPE: Only used in extractFileNAME: $dontusemimetypedetectionTYPE: BooleanPURPOSE: Set to true to disable MIME-type detection.SCOPE: GlobalNAME: $dodgyresultTYPE: BooleanPURPOSE: Set to true if it's impossible to tell whether an archive contains another archive (e.g. with tar/bzip2 files).SCOPE: GlobalNAME: $mimenameTYPE: StringPURPOSE: getMimeType-specific version of $filenameSCOPE: getMimeTypeNAME: $mimetypeTYPE: StringPURPOSE: A "working variable" for getMimeType - eventually contains string which goes into $filetypeSCOPE: getMimeTypeNAME: $gofortarTYPE: BooleanPURPOSE: When true, ambiguous archives [see $dodgyresult] will use tarSCOPE: GlobalNAME: $filetypecheckTYPE: StringPURPOSE: Used to see if a filetype has been assigned in getFileTypeSCOPE: getFileTypeNAME: $lastfileTYPE: StringPURPOSE: Used in checkForSubdirs for checking of subdirsSCOPE: checkForSubdirsNAME: $dateTYPE: StringPURPOSE: Contains the current dateSCOPE: GlobalNAME: $monthTYPE: StringPURPOSE: Used for working out the monthSCOPE: GlobalNAME: $hasnonsubdirsTYPE: BooleanPURPOSE: See $hasitgotstuffoutofsubdirsSCOPE: Only used in extractFileSubroutines===========NAME: getHelpARGUMENTS: NonePURPOSE: Provides the help textRETURNS: NothingNAME: checkForArgsARGUMENTS: NonePURPOSE: Checks the arguments supplied to bloatRETURNS: NothingNAME: checkForSubdirsARGUMENTS: $getcontents, $typePURPOSE: Checks for files in the "root" directoryRETURNS: 1 if there are files in the root, 0 if notNAME: extractFileARGUMENTS: $getcontents, $type, $longtype, $extractcmd, $fileext, $checksdir, $custcmd, $mknewdir, $verbosePURPOSE: Extracts the archiveRETURNS: 1 if there was an error, 0 if notNAME: getFileTypeARGUMENTS: NonePURPOSE: Gets the filetype and stores it in $filetypeRETURNS: NothingNAME: getExtractorARGUMENTS: NonePURPOSE: Checks for the locations/existance of extractorsRETURNS: NothingNAME: runExractorARGUMENTS: NonePURPOSE: Sorts out what to pass to extractFile (badly named, "legacy" name)RETURNS: NothingNAME: getMimeTypeARGUMENTS: $filenamePURPOSE: Discovers the file format of unrecognised filesRETURNS: $filetype, $dodgyresultNAME: parseConfigARGUMENTS: NonePURPOSE: Parses the config fileRETURNS: NothingLast Updated: 2004-04-09
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -