help-bash
[Top][All Lists]
Advanced

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

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


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:~$


reply via email to

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