Skip to content

on OSX, wildcard "*" seems to be not enforced when open a file #2209

Description

@alaingdl

Assuming file "titi" is the only one in the working dir.

What we get in current GDL on Linux or IDL on OSX and Linux

GDL> cd, '/tmp
GDL> $touch titi
GDL> res=FILE_INFO('tit*')
GDL> res1=FILE_INFO('titi')
GDL> print, res, res1
{ titi   1   1   1   0   1   0   0   0   0   0   0   0   0   0   0         436            1784198919            1784198919            1784198919
                     0}
{ titi   1   1   1   0   1   0   0   0   0   0   0   0   0   0   0         436            1784198919            1784198919
            1784198919                     0}
GDL> openr, unit,/get_lun, 'tit*' & print, unit
    100

What we get on OSX + current GDL

[...]
GDL> print, res, res1
{ tit*   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0           0                     0                     0                     0
                     0}
{ titi   1   1   1   0   1   0   0   0   0   0   0   0   0   0   0         420            1784198818            1784198818
            1784198818                     0}
GDL> openr, unit,/get_lun, 'tit*' & print, unit
% Error opening file. Unit: 100, File: tit*
% Execution halted at: $MAIN$          

I detected that trying to read a FITS file with wildcard *
I suspect some troubles related to the famous WordExp() 😿

I don't know if is related to some troubles I have with recent Readline versions on OSX ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    MacOSXbugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions