Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glob should work with aliased commands #33

Closed
ctrlcctrlv opened this issue May 5, 2013 · 2 comments
Closed

glob should work with aliased commands #33

ctrlcctrlv opened this issue May 5, 2013 · 2 comments

Comments

@ctrlcctrlv
Copy link

> alias lls ls
> glob lls *
Unknown command `lls'.

While

> glob ls *

works.

@lavv17
Copy link
Owner

lavv17 commented May 6, 2013

Aliases are expanded during command parsing, and glob modifies a completely parsed command when aliases have been expanded already. One way to fix it could be undo the parsing (call Combine, apply redirection and conditional execution) and use PrependCmd, but I doubt it is a nice thing to do.

The main problem is that aliases are not like shell functions, they are like a string substitution.

@lavv17 lavv17 closed this as completed Nov 12, 2015
@lavv17
Copy link
Owner

lavv17 commented Nov 12, 2015

added an entry to BUGS file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants