bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: ed: please give me a little control over appending final newlines


From: Paul Jarc
Subject: Re: ed: please give me a little control over appending final newlines
Date: Fri, 01 Mar 2002 18:02:41 -0500
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/20.7 (i386-redhat-linux-gnu)

address@hidden (Andrew L. Moore) wrote:
> argv=""
> while [ $# -ne 1 ]; do argv="$argv \"$1\""; shift; done
> pathname="$1"

eval "pathname=\"\$$#\""
Popping off the last argument is a bit tricky.

>     if [ ."$@" = . ]; then ed "$TMP"; else ed "$@" "$TMP"; fi

ed ${1+"$@"} "$TMP"


paul



reply via email to

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