Skip Menu |
 

This queue is for tickets about the App-perlbrew CPAN distribution.

Report information
The Basics
Id: 67021
Status: open
Priority: 0/
Queue: App-perlbrew

People
Owner: Nobody in particular
Requestors: abraxxa [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.18
Fixed in: (no value)



Subject: LSB init script compatability
Download (untitled) / with headers
text/plain 235b
The use of source and double brackets [[]] in the generated bashrc file makes it incompatible with dash which is the default shell for the root user on Debian. Replacing source with . and double with single brackets fixes the problem.
Download (untitled) / with headers
text/plain 647b
On Mon Mar 28 09:20:40 2011, ABRAXXA wrote: Show quoted text
> The use of source and double brackets [[]] in the generated bashrc file > makes it incompatible with dash which is the default shell for the root > user on Debian. > Replacing source with . and double with single brackets fixes the problem.
I'm not sure I fully understand this line. Can you provide a patch ? Also, the whole description seems telling me that Debian root is not using bash by default (is it /bin/sh ?), and you are required to run perlbrew with a root account that cannot chsh to bash. This seems odd to me, would you like to provide more scenario description why this is useful?
Am Mo 28. Mär 2011, 13:31:38, GUGOD schrieb: Show quoted text
> On Mon Mar 28 09:20:40 2011, ABRAXXA wrote:
> > The use of source and double brackets [[]] in the generated bashrc
> file
> > makes it incompatible with dash which is the default shell for the
> root
> > user on Debian. > > Replacing source with . and double with single brackets fixes the
> problem. > > I'm not sure I fully understand this line. Can you provide a patch ?
perlbrew generates a bashrc file that you have to source in your .bashrc. Not using double brackets and the bash builtin 'source' enables to use this file with dash too. Show quoted text
> Also, the whole description seems telling me that Debian root is not > using bash by default (is it > /bin/sh ?), and you are required to run perlbrew with a root account > that cannot chsh to bash. > > This seems odd to me, would you like to provide more scenario > description why this is useful?
The debian init script policy says that every file has to start with #!/bin/sh which is a symlink to dash so dash compat would enable writing init scripts that start apps requiring perlbrew.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.