https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119337
Simon Sobisch <simonsobisch at gnu dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |---
Status|RESOLVED |REOPENED
--- Comment #4 from Simon Sobisch <simonsobisch at gnu dot org> ---
While it works for the more simple cases, it broke gcobc's documented
"everything not handled explicit is passed to gcobol" behaviour.
For exampple calling with "gcobc -g" or "gcobc -dialect gnu" now raises
basename: invalid option -- 'g'
basename: invalid option -- 'd'
applied local fix:
```diff
- *) if [ -z "$output_name" ] # first non-option argument is source
file + *) if [ -z "$output_name" ] && [ -f "${opt%.*}" ] # first
non-option argument is source file name
name
then
- output_name=$(basename ${opt%.*})
+ output_name=$(basename "${opt%.*}")
```