GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ls globbing does not behave like shell, consider using glob.sync · Issue #225 · shelljs/shelljs

ls globbing does not behave like shell, consider using glob.sync #225

New issue
Copy link
New issue
Copy link
Closed
#359
Closed
ls globbing does not behave like shell, consider using glob.sync#225
#359
Copy link
Assignees
ariporad
Labels
fixBug/defect, or a fix for such a problemhigh priority

Description

@boutell
boutell
opened on Aug 24, 2015
Issue body actions

ls() globbing does not behave like the shell. For instance, this doesn't work:

/opt/stagecoach/apps/*/current/public

The * does not match path components in the middle of a path.

The same thing works, however, if I use the glob module's "glob.sync" method instead.

I suggest using glob.sync rather than a homegrown implementation of ls.

This would impact the options currently supported by ls however.

Activity

  1. nfischer commented on Dec 28, 2015

    @nfischer
    nfischer
    on Dec 28, 2015
    Member
    More actions

    This would be a very useful addition

  2. ariporad commented on Jan 8, 2016

    @ariporad
    ariporad
    on Jan 8, 2016
    Contributor
    More actions

    I'll implement this.

  3. boutell commented on Jan 8, 2016

    @boutell
    boutell
    on Jan 8, 2016
    Author
    More actions

    A+

  4. ariporad
    added 3 commits that reference this issue on Jan 8, 2016

    Use glob for ls

    This issue will close once commit fc1b95e is merged into the 'master' branch.
    fc1b95e

    Use `glob` for globbing, instead of home-grown solutions

    This issue will close once commit 5bcebfa is merged into the 'master' branch.
    5bcebfa

    Use `glob` for globbing, instead of home-grown solutions

    This issue will close once commit c8f3bc0 is merged into the 'master' branch.
    c8f3bc0
  5. ariporad commented on Jan 9, 2016

    @ariporad
    ariporad
    on Jan 9, 2016
    Contributor
    More actions

    Fixed in #275.

  6. ariporad
    added
    fixBug/defect, or a fix for such a problem
    high priority
    on Jan 9, 2016
  7. ariporad
    self-assigned this
    on Jan 9, 2016
  8. ariporad
    added 6 commits that reference this issue on Jan 24, 2016

    Use `glob` for globbing, instead of home-grown solutions

    This issue will close once commit 17a33c5 is merged into the 'master' branch.
    17a33c5

    Use `glob` for globbing, instead of home-grown solutions

    This issue will close once commit fd77b7e is merged into the 'master' branch.
    fd77b7e

    Use `glob` for globbing, instead of home-grown solutions

    This issue will close once commit a2435fb is merged into the 'master' branch.
    a2435fb

    Use `glob` for globbing, instead of home-grown solutions

    This issue will close once commit 9c31f72 is merged into the 'master' branch.
    9c31f72

    Use `glob` for globbing, instead of home-grown solutions

    This issue will close once commit adeac6c is merged into the 'master' branch.
    adeac6c

    Use `glob` for globbing, instead of home-grown solutions

    This issue will close once commit 4d746f8 is merged into the 'master' branch.
    4d746f8
  9. ariporad
    closed this as completedin #359on Feb 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @ariporad
    ariporad

Labels

fixBug/defect, or a fix for such a problemhigh priority

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.