Carl Lowenstein wrote:
> On 6/8/07, Todd Walton <[EMAIL PROTECTED]> wrote:
>> On 6/7/07, Carl Lowenstein <[EMAIL PROTECTED]> wrote:
>> > Here is a really simple shell script that I wrote for "pdf2up", using
>> > their tool.  There are lots of other fancy features that I did not
>> > need.
>> >
>> > [EMAIL PROTECTED] ~]$ cat $(which pdf2up)
>> > #!/bin/sh
>> > java tool.pdf.Impose -nup 2 -paper letter $*
>>
>> Why not an alias?
>>
> 
> A one-line shell script seemed easier at the time.
> 
> Bash aliases don't take arguments, although that would not be problem
> in this case.

Bash functions are the way to get alias behavior but with arguments.
Unfortunately, I have to think harder than I like in order to remember
the syntax for bash function definitions. <sigh>

zsh aliases allow args, IIRC.

Regards,
..jim


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to