0

I am trying to write a simple shell script, and one aspect of it involves outputting the result of an lsrc command. If you aren't familiar with lsrc, look here rcm

Here is essentially what I am trying:

#!/bin/bash
output=$(lsrc)
echo "$output"

all I am seeing is an empty newline, where as running this command in a normal bash/zsh environment prints output to the screen.

Zach
  • 4,555
  • 9
  • 31
  • 52

0 Answers0