[26537] in Source-Commits

home help back first fref pref prev next nref lref last post

Re: /svn/athena r25601 - trunk/debathena/debathena/dotfiles

daemon@ATHENA.MIT.EDU (Jonathan Reed)
Wed Jul 4 15:34:16 2012

Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Jonathan Reed <jdreed@MIT.EDU>
In-Reply-To: <alpine.GSO.1.10.1207031957210.18441@multics.mit.edu>
Date: Wed, 4 Jul 2012 15:34:10 -0400
Cc: source-commits@MIT.EDU
Message-Id: <32C6F459-28B6-412E-AD05-0930BE70CBA0@MIT.EDU>
To: Benjamin Kaduk <kaduk@MIT.EDU>
Content-Transfer-Encoding: 8bit


On Jul 3, 2012, at 7:58 PM, Benjamin Kaduk wrote:

> On Mon, 2 Jul 2012, Jonathan D Reed wrote:
> 
>> 
>> Modified: trunk/debathena/debathena/dotfiles/bashrc
>> ===================================================================
>> --- trunk/debathena/debathena/dotfiles/bashrc	2012-07-01 16:28:18 UTC (rev 25600)
>> +++ trunk/debathena/debathena/dotfiles/bashrc	2012-07-02 13:48:20 UTC (rev 25601)
>> @@ -149,19 +149,19 @@
>> if [ "${skip_sanity_checks+set}" != set ]; then
>>    missing=0
>>    echo $path | /usr/bin/tr ':' '\n' | /bin/grep -Fqx /bin
>> -    [ $? = 0 ] || missing=1
>> +    [ $? -eq 0 ] || missing=1
>>    echo $path | /usr/bin/tr ':' '\n' | /bin/grep -Fqx /usr/bin
>> -    [ $? = 0 ] || missing=1
>> +    [ $? -eq 0 ] || missing=1
>>    if [ $missing -eq 1 ]; then
>> -	text="You appear to have incorrectly modified your PATH variable in your dotfiles,\nand as such have deleted /bin and/or /usr/bin from your PATH, which\nwill likely cause this login session to fail.  Please correct this problem.\nYou can set the skip_sanity_checks variable to disable this message."
>> +	text="You appear to have incorrectly modified your PATH variable in your dotfiles,\nand as such have deleted /bin and/or /usr/bin from your PATH, which\nwill likely cause this login session to fail.  Please correct this problem.\nThis warning can be disabled with 'skip_sanity_checks=t' in ~/.bashrc.mine."
>> 	echo -e "$text" >&2
>> 	[ -n "$DISPLAY" ] && /usr/bin/zenity --warning --text="$text"
>>    fi
>>    if [ -n "$LD_ASSUME_KERNEL" ]; then
>> 	unset LD_ASSUME_KERNEL
>> -	text="In your shell customizations, you set LD_ASSUME_KERNEL.  This is a bad idea.\nIt has been unset.\nIf you really did want that, set the skip_sanity_checks variable in your .bashrc.mine."
>> +	text="In your dotfiles, you set LD_ASSUME_KERNEL.  This generally causes undesirable behavior.\nIt has been unset for you.\nIf you really wanted it set, you can add 'skip_sanity_checks=t' to your ~/.bashrc.mine."
>> 	echo -e "$text" >&2
>> -	[ -n "$DISPLAY" ] && /usr/bin/zenity --warning --text="$text"
>> +	[ n "$DISPLAY" ] && /usr/bin/zenity --warning --text="$text"
> 
> Oops?
> 
> Thanks for the other changes.
> 
> -Ben


Gah, no idea how I pulled that off.

Fixed.

home help back first fref pref prev next nref lref last post