Bash (Unix shell): Difference between revisions

Content deleted Content added
Tokens: prose
Line 821:
| title = Introduction to Linux, Ch. 3 About files and the filesystem, 3.1. General overview of the Linux file system, 3.1.1 Files
| url = https://tldp.org/LDP/intro-linux/html/sect_03_02.html#sect_03_02_02
| website = tldp.org[[Linux Documentation Project]]
}}</ref>{{efn
| This description does not apply to [[Microsoft Windows |Windows]]-based operating systems.
Line 848:
| title = Introduction to Linux, Ch. 3 About files and the filesystem, 3.4 File security, 3.4.2.3. The file mask
| url = https://tldp.org/LDP/intro-linux/html/sect_03_04.html
| website = tldp.org[[Linux Documentation Project]]
}}</ref>
 
Line 875:
| title = Introduction to Linux, Ch. 3 About files and the filesystem, 3.2 Orientation in the filesystem, 3.2.2 Absolute and relative paths
| url = https://tldp.org/LDP/intro-linux/html/sect_03_02.html#sect_03_02_02
| website = tldp.org[[Linux Documentation Project]]
}}</ref>
When the kernel searches for a directory, the starting point is the leftmost character of directory name.
Line 932:
| title = Introduction to Linux, Ch. 3 About files and the filesystem, 3.2 Orientation in the filesystem, 3.2.1 The path
| url = https://tldp.org/LDP/intro-linux/html/sect_03_02.html#sect_03_02_01
| website = tldp.org[[Linux Documentation Project]]
}}</ref>
 
Line 1,240:
| url = https://tldp.org/LDP/abs/html/portabilityissues.html
| url-status = live
| website = tldp.org[[Linux Documentation Project]]
}}</ref>
To cause a script to be initialized in POSIX mode, one would use the either the hashbang {{Code| #! /bin/env sh}} or the less portable {{Code| #!/bin/sh}}.
Line 1,973:
| title = Advanced Bash Scripting Guide, Ch 25. Aliases
| url = https://tldp.org/LDP/abs/html/abs-guide.html#ALIASES
| website = tldp.org[[Linux Documentation Project]]
}}</ref><ref>
{{Cite web
Line 2,046:
| title = Advanced Bash Scripting Guide, Ch 24. Functions
| url = https://tldp.org/LDP/abs/html/abs-guide.html#FUNCTIONS
| website = tldp.org[[Linux Documentation Project]]
}}</ref><ref>
{{Cite web
Line 2,364:
| url = https://www.tldp.org/LDP/abs/html/bashver3.html#BASH3REF
| url-status = live
| website = tldp.org[[Linux Documentation Project]]
}}</ref>
Regexp matching is limited to strings on the right side of the <CODE>=~</CODE> operator in the {{Code| [[..]]}} extended test construct.<ref>
Line 2,553:
| url = https://tldp.org/LDP/abs/html/bashver4.html
| url-status = live
| website = tldp.org[[Linux Documentation Project]]
}}</ref>
Bash 4.0{{efn|Bash 4 also switches its license to [[GNU General Public License#Version 3|GPL-3.0-or-later]].
Line 2,759:
| title = Advanced Bash Scripting Guide: Appendix J: An Introduction to Programmable Completion
| url = https://tldp.org/LDP/abs/html/tabexpansion.html
| website = tldp.org[[Linux Documentation Project]]
}}</ref>
 
Line 3,219:
| url = https://tldp.org/LDP/Bash-Beginners-Guide/html/sect_02_03.html
| url-status = live
| website = tldp.org[[Linux Documentation Project]]
}}</ref>