Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
scripting:bashchanges [2020/06/28 06:19] thebonsai Transformations are possible since.. .uhm, not found! |
scripting:bashchanges [2020/06/28 06:51] (current) thebonsai [Table] |
||
---|---|---|---|
Line 100: | Line 100: | ||
| ''test''/''%%[%%''/''%%[[%%'': ''-v'' | 4.2-alpha | check if a variable is set | | | ''test''/''%%[%%''/''%%[[%%'': ''-v'' | 4.2-alpha | check if a variable is set | | ||
| ''test''/''%%[%%''/''%%[[%%'': ''-v'' | 4.2-alpha | support array syntax to check for elements | | | ''test''/''%%[%%''/''%%[[%%'': ''-v'' | 4.2-alpha | support array syntax to check for elements | | ||
+ | | ''test''/''%%[%%''/''%%[[%%'': ''-N'' accepts nanoseconds | 5.1-alpha | | | ||
+ | | ''test''/''%%[%%''/''%%[[%%'': ''-v'' accepts positional parameters | 5.1-alpha | | | ||
==== Other builtins and keywords ==== | ==== Other builtins and keywords ==== | ||
Line 160: | Line 162: | ||
| ''trap'' | ''-p'' option prints signals with SIG_DFL/SIG_IGN on shell start (POSIX mode) | 5.1-alpha | | | | ''trap'' | ''-p'' option prints signals with SIG_DFL/SIG_IGN on shell start (POSIX mode) | 5.1-alpha | | | ||
| ''unset'' | automatically tries to unset a function if the given name is an invalid variable name | 5.1-aplha | | | | ''unset'' | automatically tries to unset a function if the given name is an invalid variable name | 5.1-aplha | | | ||
- | | ''test'' | conditional expresseions using ''-N'' now accept nanoseconds | 5.1-alpha | | | ||
| ''wait'' | option ''-n'' now accepts a list of jobs | 5.1-alpha | | | | ''wait'' | option ''-n'' now accepts a list of jobs | 5.1-alpha | | | ||
| ''wait'' | new option ''-p NAME'' to store PID/JobID (useful when waiting for a list of jobs) | 5.1-alpha | | | | ''wait'' | new option ''-p NAME'' to store PID/JobID (useful when waiting for a list of jobs) | 5.1-alpha | | | ||
- | | ''test'' | ''-v NAME'' (test if variable has been assigned) accepts positional parameters | 5.1-alpha | | | ||
| ''local'' | new option ''-p'' to print local variables in the current scope | 5.1-alpha | | | | ''local'' | new option ''-p'' to print local variables in the current scope | 5.1-alpha | | | ||
| ''ulimit'' | new option ''-R'' to get/set ''RLIMIT_RTTIME'' resource | 5.1-alpha | | | | ''ulimit'' | new option ''-R'' to get/set ''RLIMIT_RTTIME'' resource | 5.1-alpha | | | ||
Line 256: | Line 256: | ||
| ''%%${PARAMETER:OFFSET:LENGTH}%%'': Negative ''LENGTH'' values are used as offset from the end of the string | 4.2-alpha | Substrings only for Bash and ksh93. Works also for argument expansions in zsh. ksh93 can use ''${arr[n..-m]}''. | | | ''%%${PARAMETER:OFFSET:LENGTH}%%'': Negative ''LENGTH'' values are used as offset from the end of the string | 4.2-alpha | Substrings only for Bash and ksh93. Works also for argument expansions in zsh. ksh93 can use ''${arr[n..-m]}''. | | ||
| Word expansions like ''${foo##bar}'' understand indirect variable references | 4.3-beta | | | | Word expansions like ''${foo##bar}'' understand indirect variable references | 4.3-beta | | | ||
- | | Transofrmations | ????? | | | + | | Transofrmations | 4.4 | | |
| Process substitution now works in POSIX mode | 5.1-alpha | | | | Process substitution now works in POSIX mode | 5.1-alpha | | | ||
+ | | New transformations: ''U'', ''u'', ''L'' | 5.1-alpha | Case-transformation | | ||
+ | | New transformation: ''K'' | 5.1-alpha | Display associative arrays as key/value pairs | | ||