Kurtis Rader
Kurtis Rader
FWIW, I found this package when I needed a way to write multiline literal strings with leading tabs for unit tests in a readable manner. That an initial newline isn't...
For the record, the solution I settled on is the obvious one. At the top of the `Dedent` function replace ``` text = whitespaceOnly.ReplaceAllString(text, "") ``` with ``` if text[0]...
> I just append [1:] after Dedent() if I don't want the first newline. @bersace Yes, that works but is less efficient and requires the user to explicitly remove the...
FWIW, the POSIX semantics for temporary assignments work by instantiating environment variables. Except when it doesn't. That is, `x=y ...` is (mostly) equivalent to `env x=y ...`. It's an example...
See also, issue #705. Consider the unexpected behavior of this example: ``` > x = 1 > put $x ▶ 1 > x=2 > put $x ▶ 2 > x=3...
This comment is indirectly related to this issue since the problem I'm describing involves permanent, rather than temporary, assignments. Consider this pipeline: ``` echo a=b | cut -d = -f...
I don't think referencing Bash's `local` keyword clarifies the matter and should be avoided. See, for example, https://stackoverflow.com/questions/4419704/differences-between-declare-typeset-and-local-variable-in-bash. The distinction between `typeset`, `declare` and `local` is a muddle in Bash...
Fish doesn't use inotify or whatever the platform provides for monitoring changes to the filesystem. For auto loaded functions it checks the directory(s) periodically. Something on the order of 10...
Note that fish runs on a large number of platforms. Many of which are not based on GNU Linux. Some of those provide mechanisms similar to Linux inotify. Some don't....
The "source route" means to execute `source ~/.config/fish/functions/proof.fish` to immediately execute the contents of the autoload function script. Thus bypassing the 15 second, worst case, delay before the new autoload...