<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dwarvish.git/src, branch docs</title>
<subtitle>a (mostly) posix compliant shell and tiny functional programming language
</subtitle>
<link rel='alternate' type='text/html' href='https://git.dwarvish.org/dwarvish.git/'/>
<entry>
<title>Sort output of 'export' and 'alias'</title>
<updated>2024-04-12T03:49:51+00:00</updated>
<author>
<name>Rory Dudley</name>
</author>
<published>2024-04-12T03:49:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dwarvish.org/dwarvish.git/commit/?id=87e4a3da43e7d203d3405f977ce8e93298dd55c3'/>
<id>87e4a3da43e7d203d3405f977ce8e93298dd55c3</id>
<content type='text'>
Sort the output of the built-in 'export' and 'alias' commands, in cases
where all environment variables/aliases are printed out.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sort the output of the built-in 'export' and 'alias' commands, in cases
where all environment variables/aliases are printed out.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add 'strings' to the verse after the string!() macro</title>
<updated>2024-04-07T05:50:46+00:00</updated>
<author>
<name>Rory Dudley</name>
</author>
<published>2024-04-07T05:50:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dwarvish.org/dwarvish.git/commit/?id=6198c54a9e1155bb9b7f93b8cb5daf3e2deddb25'/>
<id>6198c54a9e1155bb9b7f93b8cb5daf3e2deddb25</id>
<content type='text'>
This patches fixes a bug, where sometimes, when a Rune::String was
detected, the resulting string from the string!() macro wasn't getting
pushed to the current verse.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patches fixes a bug, where sometimes, when a Rune::String was
detected, the resulting string from the string!() macro wasn't getting
pushed to the current verse.
</pre>
</div>
</content>
</entry>
<entry>
<title>Capture STDOUT as bytes, and convert to string when necessary</title>
<updated>2024-04-07T05:32:30+00:00</updated>
<author>
<name>Rory Dudley</name>
</author>
<published>2024-04-07T05:32:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dwarvish.org/dwarvish.git/commit/?id=f5db8d64828db756b80b6022322265a2b4f1c11b'/>
<id>f5db8d64828db756b80b6022322265a2b4f1c11b</id>
<content type='text'>
Previously, the recite() function created the 'out' variable, which was
a String, that got passed to the various incant functions, in order to
capture STDOUT in certain situations. In cases where STDOUT was
captured, it was first converted to a String, and then appended to the
'out' variable, by means of String::from_utf8_lossy(). This works for
basic text, however, does NOT work for binary data. This becomes
problematic, when for example, downling a tar file with curl/wget, that
is then piped ('|') to the tar program. Using from_utf8_lossy() in this
case can corrupt the tar file. This patch makes it so that out is stored
as bytes by default, and only converted to a String when necessary.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, the recite() function created the 'out' variable, which was
a String, that got passed to the various incant functions, in order to
capture STDOUT in certain situations. In cases where STDOUT was
captured, it was first converted to a String, and then appended to the
'out' variable, by means of String::from_utf8_lossy(). This works for
basic text, however, does NOT work for binary data. This becomes
problematic, when for example, downling a tar file with curl/wget, that
is then piped ('|') to the tar program. Using from_utf8_lossy() in this
case can corrupt the tar file. This patch makes it so that out is stored
as bytes by default, and only converted to a String when necessary.
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle aliases in read()</title>
<updated>2024-04-05T04:12:14+00:00</updated>
<author>
<name>Rory Dudley</name>
</author>
<published>2024-04-05T04:12:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dwarvish.org/dwarvish.git/commit/?id=1415c8f9b89699000ef8d864ff8f0e1bebca4a5f'/>
<id>1415c8f9b89699000ef8d864ff8f0e1bebca4a5f</id>
<content type='text'>
Instead of handling aliases in the recite() function, which requires two
loops to handle properly with the current implementation, offload
checking for aliases to the read() function.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of handling aliases in the recite() function, which requires two
loops to handle properly with the current implementation, offload
checking for aliases to the read() function.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add better support for aliases</title>
<updated>2024-04-04T06:47:24+00:00</updated>
<author>
<name>Rory Dudley</name>
</author>
<published>2024-04-04T06:47:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dwarvish.org/dwarvish.git/commit/?id=9b3e4dd71ec1491e3580e079e9be1b42117a74c9'/>
<id>9b3e4dd71ec1491e3580e079e9be1b42117a74c9</id>
<content type='text'>
Make sure to interpret alias values as their own poems, since aliases
can be fairly complex.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make sure to interpret alias values as their own poems, since aliases
can be fairly complex.
</pre>
</div>
</content>
</entry>
<entry>
<title>Document aliases in the docstring for lookup()</title>
<updated>2024-03-31T06:53:56+00:00</updated>
<author>
<name>Rory Dudley</name>
</author>
<published>2024-03-31T06:53:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dwarvish.org/dwarvish.git/commit/?id=beb11773f6ac17d0b97f908311ac5989e1a0a5ae'/>
<id>beb11773f6ac17d0b97f908311ac5989e1a0a5ae</id>
<content type='text'>
Add documentation for anthology::lookup(), with a list containing all
the default aliases for builtin commands.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add documentation for anthology::lookup(), with a list containing all
the default aliases for builtin commands.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add docstring comments to all the anthology functions</title>
<updated>2024-03-31T06:50:03+00:00</updated>
<author>
<name>Rory Dudley</name>
</author>
<published>2024-03-31T06:50:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dwarvish.org/dwarvish.git/commit/?id=791b61f97e3ee12dfd765f5e23edd5df527eb803'/>
<id>791b61f97e3ee12dfd765f5e23edd5df527eb803</id>
<content type='text'>
Add docstring comments for all the incant function throughout the
anthology, documenting what each function does, and an example of it's
shell command.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add docstring comments for all the incant function throughout the
anthology, documenting what each function does, and an example of it's
shell command.
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't interpret environment variables in single quoted strings</title>
<updated>2024-03-31T06:14:46+00:00</updated>
<author>
<name>Rory Dudley</name>
</author>
<published>2024-03-31T06:14:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dwarvish.org/dwarvish.git/commit/?id=f03f4e0fcf62c9b3267bc5d8b62068d89ec593cd'/>
<id>f03f4e0fcf62c9b3267bc5d8b62068d89ec593cd</id>
<content type='text'>
Previously, if an environment variable was given in a string, such as:
'$PATH' or "$PATH", both would be replaced with the value of $PATH from
the environment. However, for single quotes strings, any values inside
should be taken at face value. In other words, echo '$PATH' should
simply write out: $PATH, and not whatever environment value $PATH
happens to be. This patch replaced '$' in single quoted strings with
the ASCII shift out (x0e) character. Any ASCII SO placeholder is
replaced with a '$' in recite(), after the environment variables have
been accounted for.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, if an environment variable was given in a string, such as:
'$PATH' or "$PATH", both would be replaced with the value of $PATH from
the environment. However, for single quotes strings, any values inside
should be taken at face value. In other words, echo '$PATH' should
simply write out: $PATH, and not whatever environment value $PATH
happens to be. This patch replaced '$' in single quoted strings with
the ASCII shift out (x0e) character. Any ASCII SO placeholder is
replaced with a '$' in recite(), after the environment variables have
been accounted for.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use $PS1 for the prompt</title>
<updated>2024-03-31T05:36:58+00:00</updated>
<author>
<name>Rory Dudley</name>
</author>
<published>2024-03-31T05:36:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dwarvish.org/dwarvish.git/commit/?id=c433dd2c400d9f2e8421f074be1b287d27b709df'/>
<id>c433dd2c400d9f2e8421f074be1b287d27b709df</id>
<content type='text'>
Instead of passing a hard-coded value for the prompt, use $PS1. The
default is '|&gt; ', set in dist/etc/dwvshrc.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of passing a hard-coded value for the prompt, use $PS1. The
default is '|&gt; ', set in dist/etc/dwvshrc.
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace env!("HOME") with env::var("HOME")</title>
<updated>2024-03-31T05:20:03+00:00</updated>
<author>
<name>Rory Dudley</name>
</author>
<published>2024-03-31T05:20:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dwarvish.org/dwarvish.git/commit/?id=2534e480bf4de2101f390beded67493565913238'/>
<id>2534e480bf4de2101f390beded67493565913238</id>
<content type='text'>
Replaced all (non-test) instances of env!("HOME") with env::var("HOME").
The env! macro should only be used in instances where the environment
variable should be resolved during compile time.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replaced all (non-test) instances of env!("HOME") with env::var("HOME").
The env! macro should only be used in instances where the environment
variable should be resolved during compile time.
</pre>
</div>
</content>
</entry>
</feed>
