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

Lab: Îmbunătățirea lucrului în linia de comandă - Information for {} is wrong or incomplete #27

Open
elena19m opened this issue Nov 16, 2020 · 0 comments

Comments

@elena19m
Copy link
Contributor

The explanations for {} [1] are wrong or incomplete. From the lab [1], I get that {} are a form of OR.
From lab: "... folosim sintaxa {} pentru a defini o listă de cuvinte ... care pot fi folosite în înlocuire. Această sintaxă înlocuiește exact un cuvânt din lista oferită" + "Citim expresia {Downloads,Music}: în locul acestei expresii poate să existe cuvântul Downloads sau cuvântul Music."

In reality, {} represent expansion of terms. Ex: touch file{1,2,3,4,5}.txt expands to touch file1.txt file2.txt file3.txt file4.txt file5.txt. And ls {Downloads,Music} expands to ls Downloads Music.
See "Brace Expansion" from [2].

Please correct or improve the text that refers to {}.

[1] https://ocw.cs.pub.ro/courses/uso/laboratoare/laborator-05#sintaxa_speciala1
[2] https://linux.die.net/man/1/bash

@elena19m elena19m changed the title Lab: Îmbunătățirea lucrului în linia de comandă Lab: Îmbunătățirea lucrului în linia de comandă - Information for {} is wrong or incomplete Nov 16, 2020
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

1 participant