mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-30 15:03:52 +02:00
fix to make += work with dynamic integer vars like RANDOM
This commit is contained in:
+4
-5
@@ -6662,12 +6662,11 @@ with @samp{bind -x} (@pxref{Bash Builtins}).
|
||||
The default variable for the @code{read} builtin.
|
||||
|
||||
@item SECONDS
|
||||
This variable expands to the number of seconds since the
|
||||
shell was started. Assignment to this variable resets
|
||||
the count to the value assigned, and the expanded value
|
||||
becomes the value assigned plus the number of seconds
|
||||
This variable expands to the number of seconds since the shell was started.
|
||||
Assignment to this variable resets the count to the value assigned, and the
|
||||
expanded value becomes the value assigned plus the number of seconds
|
||||
since the assignment.
|
||||
The number of seconds at shell invocation and the current time is always
|
||||
The number of seconds at shell invocation and the current time are always
|
||||
determined by querying the system clock.
|
||||
If @env{SECONDS}
|
||||
is unset, it loses its special properties,
|
||||
|
||||
Reference in New Issue
Block a user