-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set $ENV{SHELL} if it's missing #404
Conversation
Hi @maxhq, The commit f6765ea only works on Linux where Also, SHELL is a dependency when interacting with perlbrew via its shell integration, perlbrew itself should be usable as a command. Do you have a init.d script that can demonstrate the error message ? |
Hi gugod, that's my point: perlbrew should also work without E.g. under Debian if you restart a service with What about this modification of the patch: I think the best would be if perlbrew did not use |
Interesting. Would you mind providing some skeleton of your service script that uses perlbrew ? The dependency of OTOH, I'd imagine that the service script only need to "read" perlbrew env to bootstrap |
I'll add the |
----------------------------- 0.72: # 2014-10-27T21:38:19+0100 - Fix 0.71 breakage on MacOSX when the shell is bash or zsh - Fix spelling mistake. by @gregoa++ 0.71: # 2014-09-13T19:59:15+0200 - Fix a few bugs of having unwanted values in PERL5LIB when switching between libs 0.70: # 2014-09-02T20:41:15+0900 - download the fatpacked perlbrew from an http:// url. - protect fatpacked perlbrew from PERL5LIB, thanks to dagolden++ - avoid several warnings, thanks to DabeDotCom++ - making perlbrew a bit friendlier to init.d script, thanks to maxhq++ . see also gugod/App-perlbrew#404 - make it possible to override PERLBREWURL before invoking installers 0.69: # 2014-06-10T23:32:05+0200 - fix 'perlbrew env' breakage by just avoiding bad local::lib versions. 0.68: # 2014-06-07T15:08:00+0200 - disable SSL cert checks. GH #385. - "perlbrew download stable" works as on expects. GH #383 - Many fish shell fixes. GH #376 #378 #379 - make 5.21 installable. GH #396 - various documentation fixes.
In the rare case when $ENV{SHELL} is not set, perlbrew currently prints out:
This patch assumes that the parent process is a shell and sets $ENV{SHELL} to the path of it's executable.