
Matthew Cengia wrote:
* I'm not sure of your overall goal, but based on what I've seen, I think you're going about this the wrong way:
cpan2rpm() { command cpan2rpm --debug \ --make-maker=--make-maker="INSTALLDIRS=vendor INSTALLMAN1DIR=none \ INSTALLMAN3DIR=none" --no-sign $@; }
That should be "$@" not $@.
From past experience with coworkers, that should probably be
obviously_not_foo () { command foo -x -y -z "$@"; } because they are prone to missing the function at the top of the script and wonder why foo is working further down, when half its arguments are missing. Otherwise, the aforementioned bash array approach is reasonable. xs=(foo bar baz # comment quux quux quuux) # another comment printf '==%s==\n' "${xs[@]}"