[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: |
alex xmb ratchev |
Subject: |
Re: strace | ltrace bash == where are the file open entries for like --rcfile |
Date: |
Tue, 18 Jul 2023 11:24:29 +0200 |
On Tue, Jul 18, 2023, 11:13 AM Grisha Levit <grishalevit@gmail.com> wrote:
>
>
> 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)
>
i see , .. i had to use -i
i thought it was implied
>