Saltar al contenido ForoHackers

Two entrances, one coat, bash as my witness

Sistemas de archivosAcertijosScripts de shell
#6380 · · Citar · Denunciar

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 · · Citar · Denunciar

@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 · · Citar · Denunciar

@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 · · Citar · Denunciar

@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 · · Citar · Denunciar

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

No has iniciado sesión, así que esto se publica como anónimo: no se guarda con ello ninguna cuenta, nombre ni dirección, y no puede llevar enlaces ni imágenes. Inicia sesión o únete para publicar con tu nombre. Los registros de nuestro servidor web guardan la dirección y la hora de cada petición hasta 14 días; para que la tuya no quede en ellos, usa Tor. Para escribir al equipo de forma confidencial, usa el buzón. Firmar como fuente habitual (una clave guardada solo en este navegador)

Enviar tarda unos segundos aquí: tu navegador resuelve antes una prueba de trabajo contra el spam.

Responder