help-bash
[Top][All Lists]
Advanced

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

Re: is it normal that ${var:-~/path} doesnt resolve ~ to $HOME


From: Alex fxmbsw7 Ratchev
Subject: Re: is it normal that ${var:-~/path} doesnt resolve ~ to $HOME
Date: Tue, 15 Nov 2022 18:07:41 +0100

On Tue, Nov 15, 2022, 17:49 Chet Ramey <chet.ramey@case.edu> wrote:

> On 11/15/22 11:44 AM, Alex fxmbsw7 Ratchev wrote:
> > xmb@lt:~$ cat fix.IrcLog
> > #!/bin/bash
> >
> > sed -ri -e '/Unable to/d' -e '/refnum 0\]/d' "${1:-~/IrcLog}"
> > xmb@lt:~$ bash fix.IrcLog
> > sed: can't read ~/IrcLog: No such file or directory
>
> Double quotes inhibit tilde expansion.
>

hmm weird one
thx..

-- 
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/
>
>


reply via email to

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