cmaloney | morning | 15:30 |
---|---|---|
_stink_ | not anymore! | 16:03 |
cmaloney | Just-in-time-morning | 16:04 |
dzho | heh | 16:48 |
dzho | it's always morning somewhere | 16:48 |
dzho | (less relevant for a geographically-specific channel, but w/e) | 16:48 |
jrwren | anyone up for some bash help? my curdir is a symlink to another dir. when I ls .. I see the contents of parent dir of the actual dir instead of the contents of parent of the symlink. why? and how to change this behavior? | 18:54 |
rick_h_ | jrwren: add a / to the dir? | 18:55 |
jrwren | rick_h_: same behavior. | 18:55 |
jrwren | maybe shells always did this and I just never realized. | 18:55 |
cmaloney | jrwren: Yeah, it's a pita | 18:56 |
cmaloney | But it's working as expected | 18:57 |
jrwren | lol. I can't believe in 20yrs I never noticed. | 18:57 |
cmaloney | UNIX is the onion that keeps on peeling | 18:57 |
cmaloney | and sometimes drives the tears if you're not careful | 18:58 |
jrwren | *grumble* | 18:58 |
jrwren | I mean, I noticed yrs ago and thought it was a bash setting I had screwed up. | 18:58 |
jrwren | hrm... shit, now I i'm remembering something about the UFS paper mentioning it. | 18:58 |
jrwren | its in the UFS paper that first introduced symlinks, isn't it? | 18:58 |
* jrwren dies. | 18:59 | |
jrwren | I think I'm just having a bad day. | 18:59 |
jrwren | nevermind me. | 18:59 |
cmaloney | Even better: pwd will blow your mind | 18:59 |
jrwren | how so? | 18:59 |
cmaloney | craig@lister:~/tmp$ pwd | 18:59 |
cmaloney | /home/craig/tmp | 18:59 |
jrwren | that doesn't blow my mind. | 18:59 |
cmaloney | lrwxrwxrwx 1 craig craig 4 Nov 9 2012 tmp -> /tmp | 18:59 |
cmaloney | no? | 19:00 |
cmaloney | not even a little? | 19:00 |
jrwren | nope | 19:00 |
jrwren | sorry. | 19:00 |
cmaloney | (not even a little kid's cap gun boom?") | 19:00 |
cmaloney | Then why did the .. in cwd blow your mind? :) | 19:01 |
jrwren | because I could have sworn it was configurable behavior. | 19:01 |
cmaloney | ah | 19:02 |
jrwren | but... maybe it is because I had previously run with set -P and so if I cd into a symlink dir it resolved the symlink and took me there. | 19:02 |
cmaloney | That's possible | 19:02 |
cmaloney | Or you were naughty and used hard links. | 19:02 |
jrwren | can you hardlink a dir? | 19:03 |
jrwren | hard link not allowed for directory | 19:03 |
cmaloney | -d, -F, --directory | 19:03 |
cmaloney | allow the superuser to attempt to hard link directories (note: will probably fail due to system restrictions, even | 19:03 |
cmaloney | for the superuser) | 19:04 |
jrwren | ah, naughty | 19:04 |
jrwren | Operation not permitted | 19:04 |
jrwren | i guess ext4 doesn't support them. | 19:04 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!