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

Mention the reason of space after "[" #169

Open
imhosseinzadeh opened this issue Jul 26, 2024 · 0 comments
Open

Mention the reason of space after "[" #169

imhosseinzadeh opened this issue Jul 26, 2024 · 0 comments

Comments

@imhosseinzadeh
Copy link

imhosseinzadeh commented Jul 26, 2024

Hi, I hope you have a good day.

In section 105.2 Customize or write simple scripts, it is worth mentioning why [condition ] does not work.

Suggested text:

When using [ $kernel = "Linux" ], you might wonder why there must be a space after the [ character. This is because [ is not just a syntax element, but an actual program itself. Check type [ and which [.
Just like when you type cd /home and ls /tmp not cd/home or ls/tmp. You need spaces to separate the command from its arguments.

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