home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux      Getting to be as bloated as Windows!      107,822 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 106,724 of 107,822   
   alex to All   
   Re: assign file text to variable within    
   07 Jan 25 14:17:46   
   
   From: 1j9448a02@lnx159sneakemail.com.invalid   
      
   Il 24/12/24 11:06, Lem Novantotto ha scritto:   
   > ...   
      
      
   Sorry for the absence, i took a Christmas break.   
      
   In summary, you have to use single quotes.   
   So, the substitution   
   (https://en.wikipedia.org/wiki/Command_substitution) is done by the sub   
   shell, and not by the shell   
      
   sh -c "..." # ERROR   
   sh -c '...' # OK   
      
   $ sh -c "echo `cat snippet.txt`"   
   autoload: {   
   sh: 2: psr-4:: not found   
   sh: 3: aaa\bbb\:: not found   
   sh: 4: Syntax error: "}" unexpected   
      
   $ sh -c 'echo "`cat snippet.txt`"'   
        "autoload": {   
            "psr-4": {   
                "aaa\bbb\": "src"   
            }   
        },   
        "require": {   
            "ccc/ddd": "^1.0",   
        }   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca