in reply to Re^5: Avoid headaches from Strawberry Perl 5.10.0 and binary SVK
in thread Avoid headaches from Strawberry Perl 5.10.0 and binary SVK
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Avoid headaches from Strawberry Perl 5.10.0 and binary SVK
by BrowserUk (Patriarch) on Jan 10, 2008 at 03:20 UTC | |
letting program changes persist just seems like a recipe for disaster. Hm. Maybe I gave a false impression? They only persist, for that instance of the shell, and only until that shell instance terminates. And by that judgement, isn't the following also a potentially disasterous recipe?
Because replace DB<1> with c:\test> and it is exactly analogous. And in any case, the behaviour is easily altered to your preferred option:
Or when invoking a bat file you can avoid it changing the current shell instance by explicitly starting a new instance of the shell to run it as in:
So either behaviour is easily available. And here's yet another way to choose the required behaviour:
We could argue till we are blue in the face about which is the correct behaviour, but the reality is that these are two different systems with two different 'default' behaviours. So assuming that they are the same, or complaining that they are not is futile. I could also argue that the Win32 behaviour is more flexible because it gives you the choice, and that there are some very definite uses for it's default behaviour. But I'm guessing you probably won't read down this far, and they would fall on deaf ears even if you do. And that in a nutshell is my major problem with efforts like cygwin and Strawberry Perl.
The attempt is to make win32 look and behave like *nix so that *nix people are more comfortable and can pretend that they do not sully themselves. But in that attempt, they create more problems than they resolve. And, by the by, throw away the potential for some really good stuff. Just as it is unlikely that I could ever get up to speed on *nix to rival the hardcore *nix Perl developers. It is, with rare exception, unreasonable to expect that many of them will get up to speed on win32 development sufficiently to exploit the full potential of Perl on Win32. The only solution I see is for pairs of people to get together from both sides to drive things forward to successfully exploit the potential from both sides. But that requires feedback. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [d/l] [select] |
by dragonchild (Archbishop) on Jan 10, 2008 at 04:15 UTC | |
As for the discussion of these behaviors ... Yes, it is a default behavior. And, with a bit of fiddling, you can get the Win32-default behavior to occur in *nix. The parent process has to be the one to do that kind of decision - the child can only offer up options. And, yes, I have occasionally wanted that kind of behavior and been annoyed at the stuff I had to do to get it to dwim. But, discussing default behaviors does have a good side to it and that is to help understand why different defaults were chosen so that when we are in the position of determining default behaviors, we make better choices. For example, a few jobs back we were putting up a completely new app with a lot of complex behaviors available. We spent weeks working through the various defaults we could set and trying to figure out which was the "best" default behavior (for some value of "best"). Defaults are probably one of the hardest things to get right. Apple spends an inordinate amount of time on it and is praised for elegance. Linux spends almost no time on it and has a reputation for being overwhelming; Ubuntu has spent more time on it and is a very easy-to-use distro. Win32 ... I have mixed feelings. :-) My criteria for good software: | [reply] |
by Anonymous Monk on Jan 13, 2008 at 16:14 UTC | |
| [reply] |