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:30] thebonsai 5.1-alpha |
scripting:bashchanges [2020/06/28 06:51] thebonsai [Table] |
||
---|---|---|---|
Line 162: | 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 258: | 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 transformations: ''U'', ''u'', ''L'' | 5.1-alpha | Case-transformation | |