Skip to content

MGM: Rm, Ls - Globbing handling

Cedric Caffy requested to merge EOS-6191-EOS-6196-globbing-issues-2 into master

Main changes:

  • Path::Globbing() does not return true if the path contains characters like { or }. Indeed, the glob() function does not like those characters.
  • Rm
    • If no files are matched by the globbing, send a ENOENT error instead of silently failing
    • rm --no-globbing will deactivate globbing
  • Ls
    • If no files are matched by the globbing, send ENOENT error instead of silently returning no result to the user
    • ls -N will deactivate globbing
  • eos-instance-test adapted to cover those globbing cases

Merge request reports

Loading