alias not recognized in while read line loop in UNIX -


here sample code:

    while ifs= read var         shopt -s expand_aliases     alias fin="cd /directory/"     fin     done 

result:

    script.sh: line 53: fin: command not found 

i using var in other command. concern here that, after running script error occurs.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -