0

I guess this is a relative simple question, but I can't find the way to access the variable content when doing a git diff, so it lists all the files with specific extension.

// This works fine
git diff --name-only --cached --diff-filter=d *.{sln,csproj,vbproj,vcxprojfilters,proj,projitems,shproj,xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct,json,json5,webmanifest,yml,yaml,md,htm,html,js,jsm,ts,tsx,css,sass,scss,less,svg,vue,cmd,bat,sh,Makefile,cs,csx,cake,vb,vbx,cs,csx,cake,cs,csx,cake,vb,vb}
MyProyect/Service/App/AppGridService.cs

// but this does not work
// this is the variable content
echo $FILE_EXTS
sln,csproj,vbproj,vcxprojfilters,proj,projitems,shproj,xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct,json,json5,webmanifest,yml,yaml,md,htm,html,js,jsm,ts,tsx,css,sass,scss,less,svg,vue,cmd,bat,sh,Makefile,cs,csx,cake,vb,vbx,cs,csx,cake,cs,csx,cake,vb,vb
// this is the command that shopuld give me the same result
git diff --name-only --cached --diff-filter=d *.{$FILE_EXTS}

// returns empty, why??
0