ITERM_SESSION_ID not always unique
By jthack... on January 15, 2013 10:29 (imported from Google Code)
What steps will reproduce the problem?
- Hit cmd-T to open a tab. Run "printenv ITERM_SESSION_ID". Result is w0t0p0.
- Hit cmd-T to open another tab. Run "printenv ITERM_SESSION_ID". Result is w0t1p0.
- Switch back to first tab (w0t0p0). Close tab.
- Hit cmd-T to open another tab. Run "printenv ITERM_SESSION_ID". Result is w0t1p0.
- You now have two tabs with the same ITERM_SESSION_ID (w0t1p0).
What is the expected output?
Unique ITERM_SESSION_IDs.
What do you see instead?
Duplicate ITERM_SESSION_IDs.
If you open new tabs from the most-recently opened tabs, you don't get duplicates, but if you open a new tab from an "old" tab, you get the next numbered one up from the "old" tab number.
(I'd like to map these into unique tmux windows, so I can keep the same mosh/tmux tabbed windows open at home/work, which is how I discovered this issue).
What version of the product are you using?
iTerm2 20121224.
On what operating system?
Mac OS X 10.7.4.
Many thanks. I love iTerm2. Just brilliant!
Regards,
Jon.