Hi Luis!
> > strace -eopen bash -c "echo 'X'"
> 
> Many repeated lines, but, after "uniq":
> 
> open("/etc/ld.so.cache", O_RDONLY)      = 3
> open("/lib/libtermcap.so.2", O_RDONLY)  = 3
> open("/lib/libdl.so.2", O_RDONLY)       = 3
> open("/lib/libc.so.6", O_RDONLY)        = 3
> open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
> open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
> open("/etc/mtab", O_RDONLY)             = 3
> open("/proc/meminfo", O_RDONLY)         = 3
> open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3
> open("/usr/lib/gconv/ISO8859-1.so", O_RDONLY) = 3
> open("/home/finotti/.bashrc", O_RDONLY|O_LARGEFILE) = 3
There it is. From the bash manpage I gather that a non-interactive
bash doesn't read _any_ startup files, except for any file that
is mentioned in the environment variable $BASH_ENV. Does this
variable happen to be set, and to what value?
> --- SIGCHLD (Child exited) @ 0 (0) ---
> open("/home/finotti/local/bash_completion/bash_completion",
> O_RDONLY|O_LARGEFILE) = 3
This one is probably sourced from your .bashrc, I presume...
... and the rest seems quite normal.
Regards,
Jan
Attachment:
signature.asc
Description: Digital signature