fish shell bug-fix

14 views
Skip to first unread message

Diggory

unread,
May 10, 2012, 10:17:26 AM5/10/12
to Funtoo
Hi,

Keychain outputs almost-working commands to set environment variables
in the fish shell. The reason they don't work is because "set -e"
exits with non-zero status if variables didn't exist before.

Fix: change line 648 from
echo "$start_out" | sed 's/;.*/;/' | sed 's/^\(.*\)=\(.*\);/set -e \1;
and set -x -U \1 \2/' >"$start_fishpidf"
to
echo "$start_out" | sed 's/;.*/;/' | sed 's/^\(.*\)=\(.*\);/set -e \1;
set -x -U \1 \2/' >"$start_fishpidf"
(i.e. remove 'and').

Cheers,
Diggory

P.S. I haven't enabled delivery of messages from the list, so please
CC me if replying.
Reply all
Reply to author
Forward
0 new messages