help-bash
[Top][All Lists]
Advanced

[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


reply via email to

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