tokuhirom / Minilla

Authorizing tool for CPAN modules
https://metacpan.org/release/Minilla
Other
97 stars 65 forks source link

breaks when $EDITOR has arguments #306

Open mralusw opened 3 years ago

mralusw commented 3 years ago

While using the recommended workflow, Minilla tried to invoke my $EDITOR. Except it invokes $EDITOR as if it were a single executable, though it can have args (and mine does: vim -Nu ~/.vimrc.EDITOR)

I'll add a pull request to invoke sh -c '${EDITOR:-vi} "$1"' sh $file properly. This is Unix-y, but I don't suppose Windows users having cmd.exe as their shell really have a $EDITOR.