[expert] Bug in Bash ?

2002-12-12 Thread Bill Shirley
I'm trying to make an bash alias do what I want an things are not working as expected. [root@server1 samba]# alias ta='echo /var/log/samba/log.${1:-smbd}' [root@server1 samba]# ta /var/log/samba/log.smbd [root@server1 samba]# ta server2 /var/log/samba/log.smbd server2 I would think the second

Re: [expert] Bug in Bash ?

2002-12-12 Thread Jack Coates
On Thu, 2002-12-12 at 06:26, Bill Shirley wrote: I'm trying to make an bash alias do what I want an things are not working as expected. [root@server1 samba]# alias ta='echo /var/log/samba/log.${1:-smbd}' [root@server1 samba]# ta /var/log/samba/log.smbd [root@server1 samba]# ta server2

Re: [expert] Bug in Bash ?

2002-12-12 Thread kwan
On Thu, 12 Dec 2002, Bill Shirley wrote: I'm trying to make an bash alias do what I want an things are not working as expected. [root@server1 samba]# alias ta='echo /var/log/samba/log.${1:-smbd}' [root@server1 samba]# ta /var/log/samba/log.smbd [root@server1 samba]# ta server2