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

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -