|
From: | Alex fxmbsw7 Ratchev |
Subject: | is it normal that ${var:-~/path} doesnt resolve ~ to $HOME |
Date: | Tue, 15 Nov 2022 17:44:10 +0100 |
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 xmb@lt:~$
[Prev in Thread] | Current Thread | [Next in Thread] |