On 01/02/2022 12:37, Michael Stillwell wrote:
What's the idiomatic fish way of creating the directory (with a random, unique name) and ensuring it's deleted? Do I need to dirty my hands with /usr/bin/mktemp??
What's wrong with using mktemp?I use this function to create a temporary directory and my distro cleans it up when appropriate:
```
function cdtmp
cd (mktemp -d $argv[1])
end
```
Regards,
Erazem
OpenPGP_0xADE33D31CEE4BEFC.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
