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

The Unix Shell: Finding Things. Different on-screen message from Git Bash. #1395

Open
phwtsang opened this issue May 17, 2023 · 2 comments
Open

Comments

@phwtsang
Copy link

When I ran the command "find . -name *.txt" in the shell-lesson-data/exercise-data folder, I got the following on-screen message:
find: paths must precede expression: 'numbers.txt'
find: possible unquoted pattern after predicate '-name'?

It is different from the episode's output: "./numbers.txt". It looks to me that the on-screen message is trying to correct the same mistake that the episode is trying to elucidate.

I am using Git Bash on a Windows laptop.


Thanks for contributing! If this contribution is for instructor training, please send an email to checkout@carpentries.org with a link to this contribution so we can record your progress. You’ve completed your contribution step for instructor checkout just by submitting this contribution.

If this issue is about a specific episode within a lesson, please provide its link or filename.

Please keep in mind that lesson maintainers are volunteers and it may be some time before they can respond to your contribution. Although not all contributions can be incorporated into the lesson materials, we appreciate your time and effort to improve the curriculum. If you have any questions about the lesson maintenance process or would like to volunteer your time as a contribution reviewer, please contact The Carpentries Team at team@carpentries.org.


@steve930
Copy link

steve930 commented May 30, 2023

Hello,
I followed along with the "Finding things" lesson and set up my working environment to use Git Bash.
When I run the command:
find . -name *.txt
I get the output of "./numbers.txt" listed in the lesson page.
When I run the command:
find . -name "*.txt"
I get the output of:
./writing/LittleWomen.txt
./writing/haiku.txt
./numbers.txt

I think from your error messages you provided that perhaps one of your quotation marks in the command you entered may have been misplaced, and that that might be the issue

@bkmgit
Copy link
Contributor

bkmgit commented May 31, 2023

@steve930 Thanks. @phwtsang Thanks for your feedback. Are you still getting an error? If so, what is your environment, in particular versions of Windows and GitBash?

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

3 participants