Open enricosada opened 4 years ago
i'll send a PR
That's surprising, globbing is delegated to the fake library, which I think generally works with forward slashes.
Investigating this, it's the bash expansion who happen before the invocation of the program.
using dotnet nosln --flatten --quiet -o the.sln -I "src/common/Thor.Sif.Services.**/*.fsproj"
works as expected
if the argument is not quoted, bash expand the passing the list of paths like
-I "src/common/Thor.Sif.Services.IndexCarts/Thor.Sif.Services.IndexCarts.fsproj" "src/common/Thor.Sif.Services.IndexInventory/Thor.Sif.Services.IndexInventory.fsproj" "src/common/Thor.Sif.Services.IndexLPNSnapshot/Thor.Sif.Services.IndexLPNSnapshot.fsproj" ...
so, it's okish and correct, just unexpected.
if -I
can accept a list of string (and act like multiple -I
), may work OOTB without quotes.
But maybe that can be create other issues, i'll try apply this fix and let's see.
Ah yes, try using single quotes which don't get expanded by the shell.
On Wed, 25 Mar 2020, 14:35 Enrico Sada, notifications@github.com wrote:
Investigating this, it's the bash expansion who happen before the invocation of the program.
using dotnet nosln --flatten --quiet -o the.sln -I "src/common/Thor.Sif.Services.*/.fsproj" works as expected
if the argument is not quoted, bash expand the passing the list of paths like
-I "src/common/Thor.Sif.Services.IndexCarts/Thor.Sif.Services.IndexCarts.fsproj" "src/common/Thor.Sif.Services.IndexInventory/Thor.Sif.Services.IndexInventory.fsproj" "src/common/Thor.Sif.Services.IndexLPNSnapshot/Thor.Sif.Services.IndexLPNSnapshot.fsproj" ...
so, it's okish and correct, just unexpected.
if -I can accept a list of string (and act like multiple -I), may work OOTB without quotes. But maybe that can be create other issues, i'll try apply this fix and let's see.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/eiriktsarpalis/nosln/issues/5#issuecomment-603874265, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVO3M37IHLNUM42DKZYM33RJIJBZANCNFSM4LTNHNHA .
Environment: running on unix ( Ubuntu 18.04.2 LTS )
given a tree like
this works
but this doesnt
and generate an empty sln
workaround
Use
\\
instead of/
note
i tried without success also:
src/common/Thor.Sif.Services.*/*.fsproj
src/common/Thor.Sif.Services.*.fsproj