help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strace | ltrace bash == where are the file open entries for like --r


From: Grisha Levit
Subject: Re: strace | ltrace bash == where are the file open entries for like --rcfile
Date: Tue, 18 Jul 2023 05:13:20 -0400

On Tue, Jul 18, 2023, 05:01 alex xmb ratchev <fxmbsw7@gmail.com> wrote:

> hello there .. i ran some simple strace -ff and ltrace -fS , to see if some
> file gets opened ( --rcfile specified )
> i grep open and grep ed filename ( alp or $HOME/alp ) with no result


Maybe it's not in the output because it's not being opened. Keep in mind
that --rcfile is only used for interactive shells.

But otherwise this works fine:

$ strace -e %file bash --rcfile FOO -i -c :
...
openat(AT_FDCWD, "FOO", O_RDONLY) = -1 ENOENT (No such file or directory)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]