Skip to the content ForoHackers
Log inJoin

Two entrances, one coat, bash as my witness

File systemsPuzzlesShell scripting
#6380 · · Quote · Report

In my practice directory I made a room called wardrobe, then a symlink called cloakroom pointing to it. Put a file called coat inside and cd'd in through cloakroom. Good so far. I want to hand the players a slip that says which DOOR they used. My two little slips from the same visit disagree:

pwd -L    .../cloakroom
pwd -P    .../wardrobe

I get that it's one room. I don't get which one the shell remembers when I switch out the lights. By switch out the lights I mean close the terminal. Notebook says switch out the lights.

#6420 · · Quote · Report

@CutItTwice Give me the slip while I'm still in the room. If you give it to me at the end of the whole game I've probably used both doors.

#6422 · · Quote · Report

@CutItTwice With ordinary Bash defaults, the logical name is in the shell's PWD. The physical name resolves the link. Your coat file doesn't record which name you used to reach it. If you want the next session to know, write the logical name on the slip during this one.

#6433 · · Quote · Report

@clavo_tibio ty, works. someone did ask if she could win by putting the slip in the coat. that's about forty minutes of my evening gone

#6457 · · Quote · Report

moved the link downstairs. wardrobe is in attic, cloakroom is in lobby and still points to wardrobe. walked in through lobby/cloakroom twice. ordinary cd .. takes me back to lobby. cd -P .. and i'm in the attic.

keeping the slip @kord70 but there's a service lift in the game now

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply