Re: [mc] Relations of mc and .bashrc ?
My appreciation for all the work done supporting this useful tool! Nothing compliments the CLI like mc does, I use it every day. On Sun, Nov 3, 2024, 11:55 PM Yury V. Zaytsev via mc < mc@lists.midnight-commander.org> wrote: > This is an old story related to smb support, which was finally removed > years ago. Nowadays, mc shouldn't make any network requests at startup. > > > On 4. Nov 2024, at 08:46, Jörg Thümmler via mc < > mc@lists.midnight-commander.org> wrote: > > > > Am 04.11.24 um 08:02 schrieb solarflow99 via mc: > >> I've noticed when DNS can't resolve itself, there is a delay at > startup. Not sure if this is what you are having though, just thought I'd > mention it in case it helps. > > > > Hi, > > > > I saw the same delays here on my laptop depending on network situation. > > > > Not sure, what "DNS can't resolve itself" means: "ping localhost" works, > 127.0.0.1 is in /etc/hosts ... whatever... > > > > What I saw is - no delay if system has a working internet route... but > maybe, it's only some DNS in the internet that sends a questioning packet > back to my laptop. > > > > -- > > cu > > > > jth > > -- > > mc mailing list > > mc@lists.midnight-commander.org > > https://lists.midnight-commander.org/mailman/listinfo/mc > > -- > mc mailing list > mc@lists.midnight-commander.org > https://lists.midnight-commander.org/mailman/listinfo/mc > -- mc mailing list mc@lists.midnight-commander.org https://lists.midnight-commander.org/mailman/listinfo/mc
Re: [mc] Relations of mc and .bashrc ?
Am 04.11.24 um 08:54 schrieb Yury V. Zaytsev via mc: This is an old story related to smb support, which was finally removed years ago. Nowadays, mc shouldn't make any network requests at startup. On 4. Nov 2024, at 08:46, Jörg Thümmler via mc wrote: Am 04.11.24 um 08:02 schrieb solarflow99 via mc: I've noticed when DNS can't resolve itself, there is a delay at startup. Not sure if this is what you are having though, just thought I'd mention it in case it helps. Hi, I saw the same delays here on my laptop depending on network situation. Not sure, what "DNS can't resolve itself" means: "ping localhost" works, 127.0.0.1 is in /etc/hosts ... whatever... What I saw is - no delay if system has a working internet route... but maybe, it's only some DNS in the internet that sends a questioning packet back to my laptop. -- cu jth -- mc mailing list mc@lists.midnight-commander.org https://lists.midnight-commander.org/mailman/listinfo/mc OK, so it's because of my really old linux on this machine... thx -- cu jth -- mc mailing list mc@lists.midnight-commander.org https://lists.midnight-commander.org/mailman/listinfo/mc
Re: [mc] Relations of mc and .bashrc ?
This is an old story related to smb support, which was finally removed years ago. Nowadays, mc shouldn't make any network requests at startup. > On 4. Nov 2024, at 08:46, Jörg Thümmler via mc > wrote: > > Am 04.11.24 um 08:02 schrieb solarflow99 via mc: >> I've noticed when DNS can't resolve itself, there is a delay at startup. >> Not sure if this is what you are having though, just thought I'd mention it >> in case it helps. > > Hi, > > I saw the same delays here on my laptop depending on network situation. > > Not sure, what "DNS can't resolve itself" means: "ping localhost" works, > 127.0.0.1 is in /etc/hosts ... whatever... > > What I saw is - no delay if system has a working internet route... but maybe, > it's only some DNS in the internet that sends a questioning packet back to my > laptop. > > -- > cu > > jth > -- > mc mailing list > mc@lists.midnight-commander.org > https://lists.midnight-commander.org/mailman/listinfo/mc -- mc mailing list mc@lists.midnight-commander.org https://lists.midnight-commander.org/mailman/listinfo/mc
Re: [mc] Relations of mc and .bashrc ?
Am 04.11.24 um 08:02 schrieb solarflow99 via mc: I've noticed when DNS can't resolve itself, there is a delay at startup. Not sure if this is what you are having though, just thought I'd mention it in case it helps. Hi, I saw the same delays here on my laptop depending on network situation. Not sure, what "DNS can't resolve itself" means: "ping localhost" works, 127.0.0.1 is in /etc/hosts ... whatever... What I saw is - no delay if system has a working internet route... but maybe, it's only some DNS in the internet that sends a questioning packet back to my laptop. -- cu jth -- mc mailing list mc@lists.midnight-commander.org https://lists.midnight-commander.org/mailman/listinfo/mc
Re: [mc] Relations of mc and .bashrc ?
I've noticed when DNS can't resolve itself, there is a delay at startup. Not sure if this is what you are having though, just thought I'd mention it in case it helps. On Sun, Nov 3, 2024, 10:27 PM Yury V. Zaytsev via mc < mc@lists.midnight-commander.org> wrote: > > > On 4. Nov 2024, at 01:22, mi via mc > wrote: > > > > Does that mean mc is always creating a subshell at startup ? > > What is your expectation? Of course it will always create a subshell if > you compile with --with-subshell. If you recompile with > --with-subshell=optional or --without-subshell, it won't. Or you can > disable subshell with a command line switch. > > > I don't really need that readline anymore, i just am curious why mc only > starts slow, instead of (waiting for input and) not starting at all … > > Subshell initialization is a complicated process. Most likely, your read > -p captures something that shouldn't be captured, or mc times out, but in > any case, it manages to start, most likely in some crippled form. > > -- > mc mailing list > mc@lists.midnight-commander.org > https://lists.midnight-commander.org/mailman/listinfo/mc > -- mc mailing list mc@lists.midnight-commander.org https://lists.midnight-commander.org/mailman/listinfo/mc
Re: [mc] Relations of mc and .bashrc ?
> On 4. Nov 2024, at 01:22, mi via mc wrote: > > Does that mean mc is always creating a subshell at startup ? What is your expectation? Of course it will always create a subshell if you compile with --with-subshell. If you recompile with --with-subshell=optional or --without-subshell, it won't. Or you can disable subshell with a command line switch. > I don't really need that readline anymore, i just am curious why mc only > starts slow, instead of (waiting for input and) not starting at all … Subshell initialization is a complicated process. Most likely, your read -p captures something that shouldn't be captured, or mc times out, but in any case, it manages to start, most likely in some crippled form. -- mc mailing list mc@lists.midnight-commander.org https://lists.midnight-commander.org/mailman/listinfo/mc