NetBSD-Bugs archive

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

Re: xsrc/54851 (.profile is not read by sh when using xdm or other login managers)



The following reply was made to PR xsrc/54851; it has been noted by GNATS.

From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: Robert Elz <kre%munnari.OZ.AU@localhost>
Subject: Re: xsrc/54851 (.profile is not read by sh when using xdm or other
 login managers)
Date: Wed, 24 Aug 2022 01:02:28 +0300

 On Wed, Aug 24, 2022 at 02:01:03 +0700, Robert Elz wrote:
 
 >   | ksh, bash and zsh seems to allow mixing login and -c.  I'd prefer we
 >   | follow suit.
 > 
 > I don't have strong feelings either way, it just seems kind of
 > weird (even perverted) to abuse the concept of being a login
 > shell that way.
 
 I guess it provides a convenient way to get .profile &c read
 automagically.  E.g. I saw people doing something like
 
   ssh -l user host bash -l -c "start_some $job"
 
 where the user@host role account has some extensive setup in .profile
 
 Or ~/.xsession can be made '#!/bin/sh -l' to save up on typing.
 
 -uwe
 


Home | Main Index | Thread Index | Old Index