gnu-arch-users
[Top][All Lists]
Advanced

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

[Gnu-arch-users] Re: from a file's point of view


From: Samuel Tardieu
Subject: [Gnu-arch-users] Re: from a file's point of view
Date: Mon, 22 Sep 2003 10:55:22 +0200
User-agent: Mutt/1.5.4i

On 22/09, Miles Bader wrote:

| Samuel Tardieu <address@hidden> writes:
| > This could even be abstracted in a function.
| 
| `set' in a function modifies the function's arguments rather than the
| shell-script's.

Sure, but the result of a function can be set'ted:

apply_maybe () {
  res=`$2`
  if test -n "$res"; then
    echo `$1 $res`
  fi
}

set `apply_maybe "$TLA log-ls -f -r" "$TLA logs"`

  Sam





reply via email to

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