|
From: | Florian Mayer |
Subject: | Re: PROMPT_COMMAND and PS1 error |
Date: | Mon, 26 Oct 2015 14:21:33 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
informations at the right spots in the reference manual. Best regards
==== 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.
[Prev in Thread] | Current Thread | [Next in Thread] |