<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re:Cannot source oneAPI's 'setvars.sh' in fish in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-source-oneAPI-s-setvars-sh-in-fish/m-p/1632372#M36451</link>
    <description>&lt;P&gt;Kindly note that we were unable to get any response from your side. We will be awaiting your reply in the next 24 business hour then we will proceed with the closure of this ticket. &lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 20 Sep 2024 07:07:21 GMT</pubDate>
    <dc:creator>SofeaAzrin_A_Intel</dc:creator>
    <dc:date>2024-09-20T07:07:21Z</dc:date>
    <item>
      <title>Cannot source oneAPI's 'setvars.sh' in fish</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-source-oneAPI-s-setvars-sh-in-fish/m-p/1631219#M36432</link>
      <description>&lt;P&gt;Products from oneAPI are meant to be loaded into a terminal session through the script:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/opt/intel/oneapi/setvars.sh&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The script has this at the header:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#!/bin/sh&lt;BR /&gt;# shellcheck shell=sh&lt;BR /&gt;# shellcheck source=/dev/null&lt;BR /&gt;# shellcheck disable=SC2312&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which suggests that it should be usable by sourcing it in a generic shell. It works correctly if one uses 'bash' or 'zsh' as shell, but it doesn't work at all with 'fish' (a very popular shell for unix systems), unlike common software such as 'conda' (which correctly handles a wide variety of shells in the scripts it sources).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the error that I get when trying to source it using 'fish':&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;~&amp;gt; source /opt/intel/oneapi/setvars.sh &amp;nbsp;&lt;BR /&gt;/opt/intel/oneapi/setvars.sh (line 75): Unsupported use of '='. In fish, please use 'set script_name setvars.sh'.&lt;BR /&gt;script_name=setvars.sh&lt;BR /&gt;^~~~~~~~~~~~~~~~~~~~~^&lt;BR /&gt;from sourcing file /opt/intel/oneapi/setvars.sh&lt;BR /&gt;source: Error while reading file '/opt/intel/oneapi/setvars.sh'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Sep 2024 10:15:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-source-oneAPI-s-setvars-sh-in-fish/m-p/1631219#M36432</guid>
      <dc:creator>DavidCortes</dc:creator>
      <dc:date>2024-09-14T10:15:32Z</dc:date>
    </item>
    <item>
      <title>Re:Cannot source oneAPI's 'setvars.sh' in fish</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-source-oneAPI-s-setvars-sh-in-fish/m-p/1631898#M36439</link>
      <description>&lt;P&gt;Hi, thank you for your question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;setvars.sh&lt;/EM&gt; script provided by Intel oneAPI is written for &lt;EM&gt;sh &lt;/EM&gt;compatible shells which include &lt;EM&gt;bash &lt;/EM&gt;and &lt;EM&gt;zsh&lt;/EM&gt;, but not &lt;EM&gt;fish&lt;/EM&gt;. To source environment variables and configurations in &lt;EM&gt;fish&lt;/EM&gt;, you would typically need a script written specifically for the &lt;EM&gt;fish &lt;/EM&gt;syntax.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Sep 2024 03:23:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-source-oneAPI-s-setvars-sh-in-fish/m-p/1631898#M36439</guid>
      <dc:creator>SofeaAzrin_A_Intel</dc:creator>
      <dc:date>2024-09-18T03:23:27Z</dc:date>
    </item>
    <item>
      <title>Re:Cannot source oneAPI's 'setvars.sh' in fish</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-source-oneAPI-s-setvars-sh-in-fish/m-p/1632372#M36451</link>
      <description>&lt;P&gt;Kindly note that we were unable to get any response from your side. We will be awaiting your reply in the next 24 business hour then we will proceed with the closure of this ticket. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Sep 2024 07:07:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-source-oneAPI-s-setvars-sh-in-fish/m-p/1632372#M36451</guid>
      <dc:creator>SofeaAzrin_A_Intel</dc:creator>
      <dc:date>2024-09-20T07:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Cannot source oneAPI's 'setvars.sh' in fish</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-source-oneAPI-s-setvars-sh-in-fish/m-p/1632454#M36457</link>
      <description>&lt;P&gt;And that, precisely, is the problem: the script provided by intel's oneAPI is not usable with fish.&lt;/P&gt;&lt;P&gt;Compare that against other software that might typically be used alongside with oneAPI products, such as 'conda', which in contrast offers variants of their sourcing script for a wide variety of shells, including bash, zsh, xonsh, and others:&lt;BR /&gt;&lt;A href="https://github.com/conda/conda/blob/da66071bb4a8bc4cfba97c8f05ec20e8e3ee5f1c/conda/shell/etc/fish/conf.d/conda.fish#L60" target="_blank"&gt;https://github.com/conda/conda/blob/da66071bb4a8bc4cfba97c8f05ec20e8e3ee5f1c/conda/shell/etc/fish/conf.d/conda.fish#L60&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 15:41:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-source-oneAPI-s-setvars-sh-in-fish/m-p/1632454#M36457</guid>
      <dc:creator>DavidCortes</dc:creator>
      <dc:date>2024-09-20T15:41:29Z</dc:date>
    </item>
    <item>
      <title>Re:Cannot source oneAPI's 'setvars.sh' in fish</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-source-oneAPI-s-setvars-sh-in-fish/m-p/1633025#M36464</link>
      <description>&lt;P&gt;Specifically, it has a different syntax for setting variables compared to the Bash shell. To source the script in Fish, you would need to translate the syntax to something Fish understands or run the script in a compatible shell. Maybe like you need to create a wrapper script that sets the environment variables in Bash and then prints them out in a format that Fish can understand. Then you can source this output in Fish.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Sep 2024 05:33:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-source-oneAPI-s-setvars-sh-in-fish/m-p/1633025#M36464</guid>
      <dc:creator>SofeaAzrin_A_Intel</dc:creator>
      <dc:date>2024-09-24T05:33:02Z</dc:date>
    </item>
  </channel>
</rss>

