While loop not behaving .......
I am trying to create menu based assistant for pacman (Arch Package Manager). The problem I am having is when a command is selected it starts but never finishes. It either returns back to the command prompt or loops back to the first section and sometimes it will loop through questions generated by the pacman install sequences. I have stared at this script and can't figure it out. :scratch: :newbie:
Any direction would be appreciated. :hattip: Thank You Code:
1 #! /bin/bash |
Quote:
A better solution would be: Code:
1) |
Awesome. Thanks for the help. I made some tweaks based on your advice andrewthomas. :hattip:
Now when I get to the point of listing a package searched for ( lines 95 - 100 ) I try and send to more ( tried less to) and the input does not work ( arrow keys ) any ideas ? :study: Any and all input welcome :scratch: Thanks again. Code:
1 #! /bin/bash |
more what? Remember that a script is just a culmination of many things you would execute on the command line. So execute 96 - 98 manually and see where your issue lies.
|
:doh: --> Needed to quote my variables..:newbie: ........... All set.
Thank You everyone for the help !! :hattip: Code:
1 #! /bin/bash |
All times are GMT -5. The time now is 08:18 AM. |