2009-04-27 5 views
2

Il existe de nouvelles options dans Bash 4: checkjobs et autocd. Cependant, je ne trouve pas de documentation pour eux àImpossible d'utiliser Checkjobs et Autocd dans Bash 4

man bash 

Je lance sans succès

{checkjobs,autocd} 

Je trouve ce qui suit dans les notes de publication

There is a new `checkjobs` option that causes the shell to check for and 
report any running or stopped jobs at exit 

et

There is a new `autocd` option that, when enabled, causes bash to attempt 
to `cd` to a directory name that is supplied as the first word of a 
simple command. 

Comment pouvez-vous utiliser autocd et checkjobs?

Répondre

5

autocd et checkjobs ne sont pas des commandes, mais plutôt des options.

Ils peuvent être définis en utilisant shopt built-in.

Exemple:

shopt -s autocd 

et

shopt -s checkjobs 

ou

shopt -s autocd checkjobs 

à définir à la fois.

+0

Merci pour votre réponse! –