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

Wildcard Expansion for 2+ Args #28

Open
Retera opened this issue Jul 31, 2018 · 1 comment
Open

Wildcard Expansion for 2+ Args #28

Retera opened this issue Jul 31, 2018 · 1 comment

Comments

@Retera
Copy link

Retera commented Jul 31, 2018

I was testing yash vs ./shell from a restored version of my CS account, and this is what I got:

(begins with running yash)

eric@omnix ~/programs/homedir/etheller/cs252/lab3/lab3-src
$ grep "wildcard" *.cc
grep: *.cc: No such file or directory
eric@omnix ~/programs/homedir/etheller/cs252/lab3/lab3-src
$ ./shell

# eric at omnix in /home/eric/programs/homedir/etheller/cs252/lab3/lab3-src
$ grep "wildcard" *.cc
command.cc: * Takes a pointer to a directory, and a wildcard-containing
command.cc:			//printf("\"%s\" has a wildcard!\n", arg)

As we see above, YaSh failed to do wildcard expansion where ./shell succeeded. However, the expansion appeared to work for the 1st argument in other tests.

@allenh1
Copy link
Owner

allenh1 commented Aug 9, 2018

@Retera the underlying issue here is the fact that yash currently cannot handle wildcards with a quote near them.

echo * works, echo ~/* * works, but, unfortunately, echo "${HOME}"/* * will not. There's some issue with the grammar here. Maybe you want to take a look?

@allenh1 allenh1 added this to the Version 0.0.9 milestone Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants