Messages in this thread | | | Date | Mon, 25 Apr 2005 09:10:47 +0200 | From | Jan Hudec <> | Subject | Re: [PATCH] private mounts |
| |
On Sun, Apr 24, 2005 at 23:29:22 +0200, Miklos Szeredi wrote: > > On Sun, Apr 24, 2005 at 11:15:35PM +0200, Miklos Szeredi wrote: > > > No. You can't set "mount environment" in scp. > > > > Of course you can. It does execute the obvious set of rc files. > > Don't think so. ftp server and sftp server sure as hell don't.
Sftp sure *DOES*. It is invoked by shell, which is not run as login one, but even non-login shell sources an rc file.
> > > Otherwise your analogy is nice, but misses a few points. The usage of > > > mounts that we are talking about is much more dynamic than usage of > > > environment variables. > > > > What the hell are you smoking and just how are you using shell? > > Maybe differently from you :). It's not that often that I have to > tweak environment variables. They are usually set by scripts. > > However if you write me a script that reads my mind as to which server > I want to mount with sshfs at which time, I give you all my respect.
I can't write a script that reads your mind. But I sure can write a script that finds out what you mounted in the other shells (with help of a little wrapper around the mount command).
------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@ucw.cz> [unhandled content-type:application/pgp-signature] | |