Florian Mayer <mayerflor...@me.com> writes:

> ==== file: first.sh ====
> . second.sh
>
> sl-get(){
>     sl-set
>     sl-notify-change
>     echo $?
> }
>
> sl-set-prompt(){
>     PS1=$(sl-get)" >>"

sl-get is executed in a subshell, and any effect on the state of the
shell is forgotten after expansion.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to