Portál AbcLinuxu, 15. července 2025 15:50
# This file is sourced by all *interactive* # bash shells on startup. This file # *should generate no output* or it will # break the scp and rcp commands.Muj bash_profile inkluduje bashrc. Neni mi zcela jasne toto (man bash): When an interactive shell that is not a login shell is started, bash reads and executes commands from ~/.bashrc, if that file exists. This may be inhibited by using the --norc option. The --rcfile file option will force bash to read and execute commands from file instead of ~/.bashrc. Znamena to tedy, ze se v tomto pripade nacte pouze .bashrc a ne bash_profile? Programy scp a rcp tedy ctou primo .bashrc?
# User specific environment and startup programs
#!/bin/bash
na začátku (mimo jiné), tak by měla být volba jasná...
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.
lzap@teepee ~ $ bash lzap@teepee ~ $ exit lzap@teepee ~ $ bash -i lzap@teepee ~ $ exit lzap@teepee ~ $ bash -l Je lépe radit se před činy, než potom o nich přemítat. -- Demokritos
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.