On Sat, Mar 26, 2016 at 9:26 AM, Val Krem wrote:
>
> I'm not sure what you want, but you could always pipe one script into
> another and evaluate the input from the later. Or just call the second
> script from the first in an if.
>
(untested)
#!/bin/bash # t2.sh
read f
if [[ $f == foo ]] ; then
On Sat, Mar 26, 2016 at 8:26 AM, Val Krem wrote:
>
> I'm not sure what you want, but you could always pipe one script into
> another and evaluate the input from the later. Or just call the second
> script from the first in an if.
>
>
> It is not the question of PIPE one script to the other. I wan
On Mar 25, 2016 9:32 PM, "Val Krem" wrote:
>
> At the present I have defined the variables and folders path in both
scripts.
>
> Instead of this, is it possible to combine the two scripts in one so
that I can define the varietals at one spot. It would be less prone to
error.
>
What I've done i
When $PS1 contains \[ \] and is longer than the line length then
readline miscounts the wrap coloumn. For example, set PS1 like this:
PS1="\[$(tput bold)\]$(printf '%*s' $(stty size | awk '{print$2}') x)\[$(tput
sgr0)\] "
This causes readline to wrap the input too early by the amount of hidden