$jobdirs  –  Mapping of job number to directory

$jobdirs maps job numbers to the directories from which the job was launched.

Examples

Run job and print start directory
1
2
ping -c 10 1.1.1.1 >/dev/null &
typeset jobdirs
Output:
1
2
[1] 287759
jobdirs=( [1]=/home/user )
BashSupport Pro is a Zsh IDE with support for $jobdirstry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal