-
-
Notifications
You must be signed in to change notification settings - Fork 982
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
Update 03-create.md - Case sensitivity #1393
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -148,6 +148,21 @@ expected and can even result in data loss. | |||||||
If you need to refer to names of files or directories that have spaces | ||||||||
or other special characters, you should surround the name in quotes (`""`). | ||||||||
|
||||||||
:::::::::::::::::::::::::::::::::::::::::::::::::: | ||||||||
|
||||||||
::::::::::::::::::::::::::::::::::::::::: callout | ||||||||
|
||||||||
## Case Sensitivity | ||||||||
|
||||||||
This is normally driven by the underlying OS. In most implementations of BASH it is case sensitive, with the exception of MacOS which is case insensitive. Some OSs have predefined directories that use a capital letter at the start, such as Download, and Desktop. This is used to make these directors stand out. | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
It is standard practice to use lowercase for your files and directories, but this is only a guideline. | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
If you choose to use capital letters at the start of your file names, you should bear in mind the fact that sorting order in Unix is (sometimes) case sensitive, and some commands such as grep you may need additional options to achieve the desired result. | ||||||||
|
||||||||
Also this effect is negligible if the letter isn't the first letter in the name, so it's not an issue if you use naming standards such as camelCase. | ||||||||
|
||||||||
|
||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Some of this is rolled into my previous suggestion and the camelCase bit is probably too much for this early in the lesson. |
||||||||
:::::::::::::::::::::::::::::::::::::::::::::::::: | ||||||||
|
||||||||
### Create a text file | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Section headers don't use full title case in our style guide.