[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Alias inside function gives command not found
From: |
Khan Smith |
Subject: |
Alias inside function gives command not found |
Date: |
Thu, 14 Oct 2021 02:48:03 +0200 |
I am in a bash function with the following code
alias etgrep='/bin/grep'
etgrep -r -l "${isufx[@]}" -e "$ptrn" -- "${fdir[@]}" | sed
"${sta}~${stp}!d"
unalias etgrep
Though everything was valid, but running the function in giving me
bash: etgrep: command not found
- Alias inside function gives command not found,
Khan Smith <=