mono icon indicating copy to clipboard operation
mono copied to clipboard

mcs compiler options are not compatible with Fish shell option parser

Open EmilyGraceSeville7cf opened this issue 4 years ago • 3 comments

Current Behavior

There are too many mcs options use : instead of = as option argument delimiter:

  • --addmodule:MODULE1[,MODULE2]
  • -codepage:ID
  • -define:SYMLIST, -d:SYMLIST
  • -doc:FILE
  • -keyfile:KEYFILE
  • ...

It prevents Fish option parser to correctly complete options.

Expected Behavior

= used as an option argument delimiter but only when some environment variable specified (not to break backward compatibility). For instance when I define FISH_COMPATIBLE variable mcs prefer = instead of :.

On which platforms did you notice this

  • [ ] macOS
  • [x] Linux
  • [ ] Windows

Notes

Related PR in Fish shell

Version Used

Mono version: 6.8.0.105 OS version: Linux Mint 20.2 Cinnamon

EmilyGraceSeville7cf avatar Nov 19 '21 01:11 EmilyGraceSeville7cf

The same issue applies to: ilasm, monop, xsd, wsdl, disco, soapsuds.

EmilyGraceSeville7cf avatar Nov 19 '21 04:11 EmilyGraceSeville7cf

As an alternative, the default could be changed to = with : retained for backwards compatibility (similar to tar / cpio compact options)

andrewathalye avatar Nov 30 '21 04:11 andrewathalye

Are there any updates to this issue? 🌝

EmilyGraceSeville7cf avatar Dec 22 '23 08:12 EmilyGraceSeville7cf