|
From: | Steven W. Orr |
Subject: | Re: [Help-bash] Why won't set -v work? |
Date: | Fri, 16 Mar 2012 15:01:45 -0400 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 |
On 3/15/2012 11:49 PM, Bill Gradwohl wrote:
On Thu, Mar 15, 2012 at 9:18 PM, Steven W. Orr <address@hidden <mailto:address@hidden>> wrote: This is bash with a crafty PS4/ export PS4='+${0##*/} line $LINENO: ' Enjoy. Had to man bash to find out what PS4 was for, and it pointed at -x so I tried it. Pretty good! That can come in handy. Thanks much. -- Bill Gradwohl
Here's a better one. This is the one I use at work.export PS4='>>${BASH_SOURCE:+${BASH_SOURCE[0]##*/}}#${LINENO}${FUNCNAME:+(${FUNCNAME[0]})}> '
-- Time flies like the wind. Fruit flies like a banana. Stranger things have .0. happened but none stranger than this. Does your driver's license say Organ ..0 Donor?Black holes are where God divided by zero. Listen to me! We are all- 000 individuals! What if this weren't a hypothetical question? steveo at syslang.net
[Prev in Thread] | Current Thread | [Next in Thread] |