Dr Rainer Woitok wrote:
> Dale,
>
> On Monday, 2023-05-15 11:35:33 -0500, you wrote:
>
>> ...
>> If you got a minute, what is the reason for split-log?  What exactly
>> does it split?  I'm guessing this is new since I don't recall reading
>> about it. 
> Under Gentoo each package has a name consisting of two parts: "category/
> name".  But since under Unix/Linux the "/" is used to separate path com-
> ponents,  the build logs in "/var/log/portage/" have sort of ugly names:
> "category:name-version:YYYYMMDD:HHMMSS.log"  with a colon  rather than a
> slash between category and name.  The "split-log" feature now splits the
> category to a sub-directory name under "/var/log/portage/build/" and us-
> es name, version and time stamp as the log file name.   This enables you
> to simply use the full Gentoo package name in scripts as in
>
>    $ pkg=media-gfx/gimp
>    $ ls /var/log/portage/build/$pkg-*.log | sort -t : -rk 2,3 | head -1
>
> to get the path to the most recent log file  without first having to re-
> place the slash with a colon.
>
> This is probably only relevant if you write your own scripts to get your
> tasks done.   And I don't have any idea whether or not it's new,  I just
> found it by pure chance when looking for something else ... :-)
>
> Sincerely,
>   Rainer
>

Would this make using tab completion easier too?  I ask because when I
want to cat a error log file, tab completion gets difficult pretty
quick.  I'm not sure this would help with that tho. 

Thanks. 

Dale

:-)  :-) 

Reply via email to