On Tue, 8 Sept 2026 at 07:42, <[email protected]> wrote:
>
> Greetings.  My study continues.  If there is a more appropriate place for 
> these questions, please let me know.
>
> I am running 9legacy on guix via qemu on a T420.
>
> the first sed of the following line (page 202) does not seem to work:
>
> du -a bin | sed 's/.* //' | sed 3q
>
>  ( the numbers at the beginnings of entries do not get removed).  if instead 
> I do:
>
> echo '120 bin' | sed 's/.* //'
>
> it does.
>
> Second issue:  On page 203, end of first paragraph, it says:
>
> "By the way, it is preferable to create useful commands by creating ia shell, 
> functions can not be edited as scripts, and are not automatically shared 
> among all shells like files are.  Functions are handy to make modular 
> scripts."
>
> For me, those two sentences are sufficiently garbled that I have failed to 
> understand them, as well as I would like.  If somebody with greater wisdom 
> could provide a better translation to english, that would be appreciated.
>
> ..I will post other issues as I find them, particularly if I am not 
> successful at figuring out on my own what the problem is.
>
> 9fans / 9fans / see discussions + participants + delivery options Permalink

The substitute command to sed is supposed to use a tab not a space, as
output generated by du uses tabs as separators.
Try: du -a bin | sed 3q | sed -n l #that's a lower case el.
This will reveal the embedded tabs in the output.

As for the other question, my understanding is this, the section
introduces the concept of ad-hoc rc functions. Functions defined this
way cannot be easily modified or shared across other instances of rc.
Whereas, functions that are placed into rc scripts, i.e. files, make
for modular shell scripts.

------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T8e38494599a19744-Mfea12946eebd2fc36c4be449
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to