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
Post a Comment