5 ms·
By using $OLDJOB are you saying at every old job you ever held this was the case or just the last one? Because if it's just the last one you should have used:
by soheil 5y ago
By using $OLDJOB are you saying at every old job you ever held this was the case or just the last one? Because if it's just the last one you should have used:
const OLDJOB
Not sure why you used a variable in a comment, maybe because this is hackernews and you want to resonate with other programmers?
- otterley 5y agoThis is a well-known idiom that is now decades old.
- soheil 5y agoSource?
- bshimmin 5y agoPeople used to use shell variables like this a lot in (to name one place) alt.sysadmin.recovery, such that the FAQ even mentions it: http://www.faqs.org/faqs/sysadmin-recovery/ http://www.faqs.org/faqs/sysadmin-recovery/ (section 1.3)... meaning people have done this for decades.
- soheil 5y ago> $USEE $OF $SHELL $VARIABLES, That's obviously being done ironically and not at all similar to the commenter above's use of $OLDJOB.
- icedchai 5y agoI remember seeing this done all the time, back in the 90's on Usenet. It was very common.
- batch12 5y agoJust search for it. An example from a 2016 SANS blog post: https://isc.sans.edu/diary/Applied+Lessons+Learned/21107 https://isc.sans.edu/diary/Applied+Lessons+Learned/21107