[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-grep] egrep and fgrep script assume path

From: Paul Jarc
Subject: Re: [bug-grep] egrep and fgrep script assume path
Date: Thu, 27 Jan 2005 11:11:06 -0500
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

Stepan Kasal <address@hidden> wrote:
>> if { dir=${0%/*} } 2> /dev/null; then
> With bash, I need a semicolon before }.  A typo?

Oops, yes.

> So would the following be OK with you?

That looks pretty good.  My habit is to also sprinkle "&&" between all
commands to catch errors, but you may be more optimistic than I am. :)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]