<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>45668</bug_id>
          
          <creation_ts>2023-03-27 17:37:57 +0300</creation_ts>
          <short_desc>video_scan -s drivers завершается ошибкой</short_desc>
          <delta_ts>2023-03-29 12:41:22 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>alterator-x11</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Антон Мидюков">antohami</reporter>
          <assigned_to name="Mikhail Efremov">sem</assigned_to>
          <cc>boyarsh</cc>
    
    <cc>mike</cc>
    
    <cc>sem</cc>
    
    <cc>snejok</cc>
    
    <cc>zerg</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>223456</commentid>
    <comment_count>0</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2023-03-27 17:37:57 +0300</bug_when>
    <thetext>Имеем проблему в инсталяторе, install2 завершается ошибкой:

/usr/bin/video_scan: eval: line 81: unexpected EOF while looking for matching &apos;&quot;&apos;
/sbin/init: /usr/sbin/install2: terminated with exit code 2

Это
video_scan -s drivers
завершается ошибкой, если в выводе
lspci -Dm
есть вот такое устройство:
0000:01:00.0 &quot;Non-Volatile memory controller&quot; &quot;Samsung Electronics Co Ltd&quot; &quot;NVMe SSD Controller SM961/PM961/SM963&quot; -p02 &quot;Samsung Electronics Co Ltd&quot; &quot;SM963 2.5\&quot; NVMe PCIe SSD&quot;

Проблема в том, что, когда этот вывод проходит через read, пропадает знак экранирования перед кавычкой:
&quot;SM963 2.5\&quot; NVMe PCIe SSD&quot;
          ^

Это код в video_scan:
scan_lspci(){
  lspci -Dm |
  while read params; do
    eval select_field cap 2 $params
    [ &quot;$cap&quot; = &quot;VGA compatible controller&quot; ] || continue

проблему решает добавление опции -r:
while read -r params; do</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223466</commentid>
    <comment_count>1</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2023-03-27 20:23:29 +0300</bug_when>
    <thetext>Подготовил тестовое задание:

[#317579] TESTED (try 2) alterator-x11.git=1.98.15-alt1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223553</commentid>
    <comment_count>2</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2023-03-29 12:29:24 +0300</bug_when>
    <thetext>[#317579] EPERM (try 3) alterator-x11.git=1.98.15-alt1

Прошу или одобрить или высказать замечания по сделанному изменению.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223558</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2023-03-29 12:41:22 +0300</bug_when>
    <thetext>alterator-x11-1.98.15-alt1 -&gt; sisyphus:

 Mon Mar 27 2023 Anton Midyukov &lt;antohami@altlinux&gt; 1.98.15-alt1
 - video_scan: fix read escaped quotes in scan_lspci (Closes: 45668)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>