Qual è il modo canonico per accedere al locale documentazione su tutte le Opzioni Shell disponibili integrate con shopt
?
Sto usando Ubuntu 12.04 e posso eseguire help shopt
per ottenere una descrizione di cosa shopt
fa:
shopt: shopt [-pqsu] [-o] [optname ...]
Set and unset shell options.
...
Posso elencare le varie Opzioni Shell e i loro valori (shopt
o shopt -p
). Ma come faccio a scoprire cosa fa effettivamente ciascuno senza lasciare la comodità della mia scatola Linux? Non sto cercando le descrizioni online. C'è un man
pagina o qualcosa che mi sfugge?
Risposta accettata:
Vedi la sezione "comandi incorporati della shell" di man bash
; ha una voce per shopt
che descrive tutte le opzioni della shell disponibili. Ecco un estratto:
shopt [-pqsu] [-o] [optname ...]
[...]
autocd If set, a command name that is the name of a directory
is executed as if it were the argument to the cd com-
mand. This option is only used by interactive shells.
cdable_vars
If set, an argument to the cd builtin command that is
not a directory is assumed to be the name of a variable
whose value is the directory to change to.
cdspell If set, minor errors in the spelling of a directory com-
ponent in a cd command will be corrected. The errors
checked for are transposed characters, a missing charac-
ter, and one character too many. If a correction is
found, the corrected file name is printed, and the com-
mand proceeds. This option is only used by interactive
shells.
[...]