[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#51466: bug#53355: guix shell --check: confusing error message
From: |
Maxime Devos |
Subject: |
bug#51466: bug#53355: guix shell --check: confusing error message |
Date: |
Sat, 25 Jun 2022 23:04:10 +0200 |
User-agent: |
Evolution 3.38.3-1 |
bokr@bokr.com schreef op za 25-06-2022 om 22:06 [+0200]:
> BTW, IIRC, this can be used to create an invisible file that
Invisible files don't have file names, so they cannot be put in the
tiny shell script:
> + (format
> + #f "env >~a || /usr/bin/env >~a || set >~a; \
> +echo GUIX-CHECK-DONE >>~a; exit\n"
> + temporary-file temporary-file temporary-file temporary-file))
Also, I just noticed that this tiny shell script isn't quoting
anything, so you'll get in trouble if $TMPDIR (or was it $TEMPDIR,
whatever) contains " or ' or \ or whatever.
So to avoid messy and fragile escaping, I'd recommend to work with file
descriptors.
Greetings,
Maxime.
signature.asc
Description: This is a digitally signed message part
bug#53355: guix shell --check: confusing error message, Ludovic Courtès, 2022/06/27
bug#53355: bug#51466: bug#53355: guix shell --check: confusing error message, bokr, 2022/06/27