Dave & John, thank you both.
I think you are both right that my solution is
[ -a file -o -h file ] || echo "ok to create file"
However I personally feel that there ought be a simple test for this situation,
there are still a few spare letters that could be used for the test ;)
I'm willing to be
On 6/13/13 3:58 PM, Linda Walsh wrote:
>
> I have a small function in my bashrc:
>
> function showsize () {\
> local s=$(stty size); local o="(${s% *}x${s#* })"; s="${#o}";\
> echo -n $o; while ((s-- > 0));do echo -ne "\b"; done; \
> }
> export -f showsize
> trap showsize SIGWINCH
> ---
> Tha
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 6/24/13 6:52 PM, Mike Frysinger wrote:
> On Monday 24 June 2013 16:13:01 Chet Ramey wrote:
>> On 6/17/13 1:27 AM, Mike Frysinger wrote:
>>> simple test code:
>>> unset foo
>>> printf -v foo ""
>>> echo ${foo+set}
>>>
>>> that does not di