Commit graph

5 commits

Author SHA1 Message Date
Marc Cornellà 576e0992ca z: update to latest version (e77e938)
Closes #8145

Co-authored-by: GHPS <GHPS@users.noreply.github.com>
2019-09-13 11:44:20 +02:00
Marc Cornellà 052493b1ba z: refresh $RANDOM's value outside subshell
This change references `$RANDOM` outside the subshell to refresh it for the
next subshell invocation. Otherwise, subsequent runs of the function get the
same value and, if run simultaneously, they may clobber each others' temp .z
files.

This is due to how zsh distributes RANDOM values when running inside a
subshell:

  subshells that reference RANDOM will result in identical pseudo-random
  values unless the value of RANDOM is referenced or seeded in the parent
  shell in between subshell invocations

See: http://zsh.sourceforge.net/Doc/Release/Parameters.html#index-RANDOM
2019-02-06 11:57:28 +01:00
MarkPochert a24a0b1a8e Update z to latest version (#7021) 2018-07-29 17:43:15 +02:00
Eduardo San Martin Morote d3363964a2 Updated z version
Closes #3248
Closes #4570
2015-11-04 16:23:48 +01:00
Marko Bauhardt e4fb94306a ohmyzsh plugin of the z project: https://github.com/rupa/z 2013-04-03 20:20:57 +02:00