CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
exec login shell

 

First page Previous page 1 2 Next page Last page  View All


sieburgh
Novice

Apr 16, 2010, 6:49 AM

Post #26 of 28 (1137 views)
Re: [rovf] exec login shell [In reply to] Can't Post


Quote
May I ask you why you need to *experiment* here, when all this is clearly documented anyway in the man-page of bash (and quite a few other shells)?

I guess we disagree on the clarity/readability of manpages.



Quote
In this case, a login shell isn't that safe either. While you don't get the parent's environment, you get instead everything which some foreign .profile does. A maintenance nightmare! If I would do this, I wouldn't let bash source *anything*, plus call it from an environment which I control.


Well, the .profiles that we use this way, are in itself version controlled and part of the software to be built. In other words: the .profile controls the versions to be chaked out. So in order to re-produce an arbitrary (old) version of our software, I only need one file: the .profile.

If we could start over again, we'd probably do it different, this is just our way of migrating from a single 'branch' to the ability to have mutiple branches. I happen to work in an industry that doesn't like , major changes...

Let's put an end to this topic, I have my solution, and I agree it's not perfect.WinkWink


rovf
Veteran

Apr 16, 2010, 7:02 AM

Post #27 of 28 (1136 views)
Re: [sieburgh] exec login shell [In reply to] Can't Post


Quote
I guess we disagree on the clarity/readability of manpages.


I wouldn't say there are no better man pages on this planet, but at least (quoting the manpage):


INVOCATION
A login shell is one whose first character of argument zero is a -, or one started with the --login option.


I don't think this is written that terribly bad ;-)


Quote
Well, the .profiles that we use this way, are in itself version controlled and part of the software to be built.


And for the same reason, you can ensure that nobody slips you a .bash_profile in his HOME which would bypass the controlled profiles?


Quote
I have my solution


Sure! That's always what counts!!


sieburgh
Novice

Apr 16, 2010, 7:10 AM

Post #28 of 28 (1133 views)
Re: [rovf] exec login shell [In reply to] Can't Post


Quote
And for the same reason, you can ensure that nobody slips you a .bash_profile in his HOME which would bypass the controlled profiles?


Yes, because the whole directory itself is created by the build process, I realy only need a .profile. Well, to be honest, a specification file that in processed by my Perl-script. Then, my Perl-script creates the directory and generates the .profile in there. Only after that, it 'enters' the directory.
But: the specification file IS the only thing I need.

First page Previous page 1 2 Next page Last page  View All
 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives