mkcd

Crates.iomkcd
lib.rsmkcd
version0.8.6
sourcesrc
created_at2022-12-18 10:41:28.337864
updated_at2023-02-01 23:20:16.570769
descriptionif mkdir and cd were mixed together
homepage
repository
max_upload_size
id740324
size4,392
Matthias Debernardini (matthiasdebernardini)

documentation

README

mkcd

A cli that does not work;

It does not work because of the way that unix handles processes. When you invoke a command in the CLI, the process that handled that prompt (be it cd or echo)

┌─────────┐ ┌──────────┐ ┌─────────┐ │ │ │ │ │ │ │ shell ├──►│ fork() ├────┬───►│ shell │◄──────────────────────── mkcd canot access this │ │ │ │ │ │ │ │ └────▲────┘ └──────────┘ │ └─────────┘ │ │ │ │ │ │ │ │ │ ┌────────────────┐ ┌─────────────┐ ┌────────┐ │ │ │ │ │ │ │ │ │ └────► copy of shell ├────►│ exec(mkcd) ├─────► mkcd │ │ │ │ │ │ │ │ │ └────────────────┘ └─────────────┘ └─────┬──┘ │ │ │ │ └──────────────────────────────────────────────────────────────────────────────┘

Commit count: 0

cargo fmt