Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Linux/Bash/.SH question

Linux/Bash/.SH question

Scheduled Pinned Locked Moved The Lounge
linuxhelpquestiontools
10 Posts 6 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jerry Evans
    wrote on last edited by
    #1

    No, really, not a programming issue :) I have a .sh archive called cs-m68k which contains the sources for a Windows -> m68K cross compiler and associated tools. Using SUSE under VMware I check the shell is 'executable', which it is. If I then execute ./cs-m68k.sh I get a BASH error claiming grep and sed cannot be found. Naturally, If I type grep on the same command line I get grep, ditto sed. Anyone got any ideas as to why the archive will not unpack? Behaviour is similar under Cygwin and MSys too. Thx++ Jerry

    E J B C 4 Replies Last reply
    0
    • J Jerry Evans

      No, really, not a programming issue :) I have a .sh archive called cs-m68k which contains the sources for a Windows -> m68K cross compiler and associated tools. Using SUSE under VMware I check the shell is 'executable', which it is. If I then execute ./cs-m68k.sh I get a BASH error claiming grep and sed cannot be found. Naturally, If I type grep on the same command line I get grep, ditto sed. Anyone got any ideas as to why the archive will not unpack? Behaviour is similar under Cygwin and MSys too. Thx++ Jerry

      E Offline
      E Offline
      Electron Shepherd
      wrote on last edited by
      #2

      Jerry Evans wrote:

      I have a .sh archive

      Aren't .sh files usually scripts (like Windows batch files)? Can you open it in vi / vim / (one of the other countless text editors included in every Linux distro)

      Server and Network Monitoring

      J M 2 Replies Last reply
      0
      • E Electron Shepherd

        Jerry Evans wrote:

        I have a .sh archive

        Aren't .sh files usually scripts (like Windows batch files)? Can you open it in vi / vim / (one of the other countless text editors included in every Linux distro)

        Server and Network Monitoring

        J Offline
        J Offline
        Jerry Evans
        wrote on last edited by
        #3

        sure. problem is the script is not executing correctly. sed & grep & friends should be invoked but something (bash?) does not want them to run

        1 Reply Last reply
        0
        • E Electron Shepherd

          Jerry Evans wrote:

          I have a .sh archive

          Aren't .sh files usually scripts (like Windows batch files)? Can you open it in vi / vim / (one of the other countless text editors included in every Linux distro)

          Server and Network Monitoring

          M Offline
          M Offline
          Maximilien
          wrote on last edited by
          #4

          those are shell archive... you need to use unshar to extract the content.

          This signature was proudly tested on animals.

          1 Reply Last reply
          0
          • J Jerry Evans

            No, really, not a programming issue :) I have a .sh archive called cs-m68k which contains the sources for a Windows -> m68K cross compiler and associated tools. Using SUSE under VMware I check the shell is 'executable', which it is. If I then execute ./cs-m68k.sh I get a BASH error claiming grep and sed cannot be found. Naturally, If I type grep on the same command line I get grep, ditto sed. Anyone got any ideas as to why the archive will not unpack? Behaviour is similar under Cygwin and MSys too. Thx++ Jerry

            J Offline
            J Offline
            Jim Crafton
            wrote on last edited by
            #5

            Could be a path issue. Make sure that: 1) sed et al, are in your path 2) make sure the script isn't doing something weird, such as changing the path, or hard coding where it thinks sed should be 3) perhaps the path is too long? I think there is a limit, but I'm pretty sure it's more than 256 chars.

            ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

            J 1 Reply Last reply
            0
            • J Jim Crafton

              Could be a path issue. Make sure that: 1) sed et al, are in your path 2) make sure the script isn't doing something weird, such as changing the path, or hard coding where it thinks sed should be 3) perhaps the path is too long? I think there is a limit, but I'm pretty sure it's more than 256 chars.

              ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

              J Offline
              J Offline
              Jerry Evans
              wrote on last edited by
              #6

              Thanks Jim, It looks like the script is modifying the path ... :(

              J 1 Reply Last reply
              0
              • J Jerry Evans

                No, really, not a programming issue :) I have a .sh archive called cs-m68k which contains the sources for a Windows -> m68K cross compiler and associated tools. Using SUSE under VMware I check the shell is 'executable', which it is. If I then execute ./cs-m68k.sh I get a BASH error claiming grep and sed cannot be found. Naturally, If I type grep on the same command line I get grep, ditto sed. Anyone got any ideas as to why the archive will not unpack? Behaviour is similar under Cygwin and MSys too. Thx++ Jerry

                B Offline
                B Offline
                Brady Kelly
                wrote on last edited by
                #7

                Jerry Evans wrote:

                No, really, not a programming issue

                No, but it's a linux question. Those should only ever, ever, be answered by Sir Richard, on a text based browser, over a varsity usenet connection. How dare you bring even a hint of such arcana to a slave of the anti-christ such as CodeProject?

                1 Reply Last reply
                0
                • J Jerry Evans

                  Thanks Jim, It looks like the script is modifying the path ... :(

                  J Offline
                  J Offline
                  Jim Crafton
                  wrote on last edited by
                  #8

                  Gag, good luck. Can you alter the script to adjust for this? Have fun :)

                  ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                  1 Reply Last reply
                  0
                  • J Jerry Evans

                    No, really, not a programming issue :) I have a .sh archive called cs-m68k which contains the sources for a Windows -> m68K cross compiler and associated tools. Using SUSE under VMware I check the shell is 'executable', which it is. If I then execute ./cs-m68k.sh I get a BASH error claiming grep and sed cannot be found. Naturally, If I type grep on the same command line I get grep, ditto sed. Anyone got any ideas as to why the archive will not unpack? Behaviour is similar under Cygwin and MSys too. Thx++ Jerry

                    C Offline
                    C Offline
                    CaptainSeeSharp
                    wrote on last edited by
                    #9

                    The makers and users of Linux don't seem to understand standards and usability.

                    Fall of the Republic[^]

                    J 1 Reply Last reply
                    0
                    • C CaptainSeeSharp

                      The makers and users of Linux don't seem to understand standards and usability.

                      Fall of the Republic[^]

                      J Offline
                      J Offline
                      Jerry Evans
                      wrote on last edited by
                      #10

                      true that.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups