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

Re: *term -ls, a summary

On Thu, Jul 25, 2002 at 09:02:40PM +0800, Isaac To wrote:
> >>>>> "Adrian" == Adrian 'Dagurashibanipal' von Bidder <avbidder@fortytwo.ch> writes:
>     Adrian> [1] (Login, non-interactive shell) Should this occur?
> I think the concepts say "yes".  E.g., if you type "ssh <host> <mycommand>",
> the shell really should be a login shell, even though the shell is not used
> to interact with the user.  However, in practice, this does not happen.
> This is one of the position where I think the system is broken: without
> running .profile, the environment is "halfly configured".  I.e., my programs
> run with PATH (and other environment variables) set to a value different
> from what I usually use, its umask does not match my own policy, or user
> limits not set, etc.  It is like using an auto variable uninitialized from
> main(): it will have initial value, it will be the same everytime you run
> the program (because the kernel clear the memory), but it will not be easy
> to know what value it is set to, and it can change everytime you upgrade
> your compiler.  In fact, when I actually use "ssh" in any serious way, I
> always have to do something like "ssh <host> '. .profile; <mycommand>'"
> instead of the simple command shown above.  I see this a rather stupid way
> to follow the broken behaviour of rsh.

FYI, I filed a bug on ssh, as I think it clearly is a bug.  If rsh does
this too, then someone who uses is may want to file a bug on it as

Of course given the long list of bugs in ssh, I dont expect this one
will ever be fixed :)

Attachment: pgpfKM6tj0THv.pgp
Description: PGP signature

Reply to: