806 reputation
613
bio website None
location United States
age 53
visits member for 5 years, 1 month
seen 2 days ago
Long-time Informix user and developer, experienced in C and Unix (many variants). Email: jonathan.leffler@gmail.com

Mar
13
awarded  Excavator
Mar
13
revised /usr/bin/ld: cannot find -ll
Fix trivial typos
Mar
13
suggested suggested edit on /usr/bin/ld: cannot find -ll
Mar
12
awarded  Yearling
May
20
awarded  Constituent
May
13
awarded  Caucus
Feb
18
comment How to find the actual working directory?
Interestingly, that (setting PWD empty, or unsetting it altogether) does work on Mac OS X, as does setting PWD to an invalid value. It is still frustrating to have to use a different command on Mac OS X to find the real path for the current directory compared with every other Unix-like system.
Oct
3
awarded  Popular Question
Sep
25
comment How do I export variables for all users in Linux?
Solaris uses PAM; whether it's version of PAM uses /etc/environment is a separate issue.
Jun
8
awarded  Caucus
May
29
awarded  Yearling
Jan
24
comment How to find the actual working directory?
And, just for the record, it is MacOS X (maybe BSD) vs 'the rest'; HP-UX, AIX, Solaris and Linux all behave as documented here. And if I had to guess, so will plain BSD; I'd lay odds it is a Mac-only 'feature' (full pejorative intent completely intended!).
Jan
24
comment How to find the actual working directory?
It means I have to unlearn close to 30 years of sane behaviour and start mapping it to handle a system that deviates unnecessarily from the path of the old ones (like me). I've no particular problem with the shell knowing how I got to a specific directory, though that sometimes annoys me to. I have major problems with a command like /bin/pwd telling me how it got to the directory; it should work out where it is in the directory hierarchy. Basically, I've now got to know how to find out the real path on MacOS X differently from everywhere else. Which is an utter pain for portability.
Jan
24
comment How to find the actual working directory?
Anything sane - which apparently does not include Mac OS X. I've just tried it, and to my complete and utter horror, your observation is correct. I hate being nannied like that. It is completely obnoxious. Somehow, /bin/pwd is being told how you did your cd (on MacOS X). That is so infuriating I can hardly type coherently. Pusillanimous! Butchery of civilized system. Grrrrrrr!!!!!!!!!!!!!!!!!! (The exact same test on a Linux worked as stated. Linux is sane. And I mainly use MacOS X; I don't get this infuriated with it easily.)
Jan
12
comment Old ubuntu password
Only by cracking the password; the whole point of Unix password management is that if you don't provide the right password, you won't be able to get the password program to produce the right hash, and therefore you won't be able to get in. And the intention is that it is computationally infeasible to find the password given just the hashed (not encrypted) form of the password.
Jan
3
comment Does /var/spool/mail/user ever get cleared?
This is a question about what it takes to program safely on Unix. It is on topic for SO.
Jan
3
answered Does /var/spool/mail/user ever get cleared?
Dec
28
comment What is the first digit for in 4-digit octal Unix file permission notation?
FYI: MacOS X behaves as if the SGID bit is always on in a directory.
Oct
31
comment What does a lot of 'STOPPED' messages in bash mean?
It means you've got jobs running in the background - maybe ones that would like to communicate with the user (to report that they've completed, perhaps, or to get an answer to a question, or ...).
Sep
7
awarded  Necromancer