[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Duvida parametro --login bash
From: |
Jonathan Lessa |
Subject: |
Re: [shell-script] Duvida parametro --login bash |
Date: |
Mon, 16 May 2011 07:13:17 -0300 |
O --login ñ é interativo, no man do bash existe o seguinte parágrafo na
parte de INVOCATION:
When bash is invoked as an interactive login shell,* or as a
non-interactive shell with the --login option*, it first reads and executes
commands from the file /etc/profile, if that file exists. After reading
that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in
that order, and reads and executes commands from the first one that exists
and is readable. The --noprofile option may be used when the shell is
started to inhibit this behavior.
Att.:
Jonathan Lessa
Em 15 de maio de 2011 11:39, spiderslack <address@hidden>escreveu:
>
>
> Ola pessoal.
>
> Estava lendo o manual do bash e notei o parametro --login que pelo que
> entendi invoca um shell interativo com login e senha. Porem quando
> executo ele não pede login e senha.
>
> :~$ bash --login
> :~$ bash -l
> :~$ exec -l bash
> :~$ exec bash --login
>
> O funcionamento e isso mesmo?
>
> Att.
>
>
--
Att.:
Jonathan Lessa
[As partes desta mensagem que não continham texto foram removidas]