Results 1 to 2 of 2

Thread: How do I write the shebang for an application manged by update alternatives.

  1. #1
    Join Date
    Jan 2018
    Location
    Annandale, VA
    Posts
    124

    Default How do I write the shebang for an application manged by update alternatives.

    I installed oorexx and regina with Yast with selection by update-alternatives (https://software.opensuse.org/packag...e-alternatives and https://software.opensuse.org/packag...2-alternatives). There is a link at /usr/bin/rexx, but bash does not accept #!/usr/bin/rexx as a valid shebang. How do I get bash to use the currently active Rexx for a Rexx script.

    linux-wbbw:~ # which.rex
    bash: /usr/local/bin/which.rex: /usr/bin/rexx^M: bad interpreter: No such file or directory
    linux-wbbw:~ #

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,497
    Blog Entries
    3

    Default Re: How do I write the shebang for an application manged by update alternatives.

    I don't have any version of "rexx" installed. It's more than 30 years since I last used "rexx" (on a VM/CMS system).

    I'm looking at the error message you are getting. That suggests to me that there is an extraneous ^M (ctrl-M or hex 0D) on the first line of that script. That's what you would get if the script was created using a Windows editor rather than a linux editor.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •