develooper Front page | perl.qa | Postings from October 2007

Re: Running CPAN as a regular user, installing as root

From:
Michael G Schwern
Date:
October 18, 2007 11:23
Subject:
Re: Running CPAN as a regular user, installing as root
Eric Wilhelm wrote:
> /usr/local/sbin/mbBuild is:
> 
>   #!/bin/sh
>   ./Build $@
            ^^

That should be "$@" or else it will get confused by spaces.


On a related note, that sort of thing is generally useful for those of us who
find typing ./Build just a little more annoying than "make".  I have an alias
like so:

	alias build='./Build'

Or you can go with a shell script like Eric's.

-- 
Stabbing you in the face for your own good.



Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About