Re: [LFS Trac] #5938: Accept new rust based utilities in host requirements

"LFS Trac" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <[email protected]>
#5938: Accept new rust based utilities in host requirements
--------------------+-----------------------
 Reporter:  pierre  |       Owner:  pierre
     Type:  task    |      Status:  assigned
 Priority:  normal  |   Milestone:  13.1
Component:  Book    |     Version:  git
 Severity:  normal  |  Resolution:
 Keywords:          |
--------------------+-----------------------
Comment (by Xi Ruoyao):

 {{{
 if sort --version |& grep -q 'uutils'; then
   ver_check Coreutils      sort     0.8 || bail "Uutils Coreutils too old,
 stop"
 else
   ver_check Coreutils      sort     8.1 || bail "GNU Coreutils too old,
 stop"
 fi
 }}}

 instead of redundantly using `$?`.  `|&` is also a shorthand for `2>&1 |`.

 Also IMO the "sort" token should be aligned to executable names in other
 ver_check commands.
-- 
Ticket URL: <https://wiki.linuxfromscratch.org/lfs/ticket/5938#comment:4>
LFS Trac <https://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.