I realise that this might be in the wrong forum so please move mods if you feel the need, but it is a Slackware specific question.
I've been playing with a script to automate kernel compilation (to some extent).
The commands I use come from AlienBob's guide and I know they work.
My question is this - would the first three lines of code take the user input and insert that input into the variable $kernel in line 4? I think it does but would like to check.
1. echo -n "Which kernel?"
2. read kernel
3. echo "kernel $KERNEL"
4. tar -C /usr/src -Jxf linux-$kernel.tar.xz
...rest of script...
Thanks in advance