[clug] IO redirection
Bryan Kilgallin (iiNet)
kilgallin at iinet.net.au
Mon Sep 25 09:14:44 UTC 2017
Hey Kim:
> for exec to work, Test.txt has to be executable and must be full path or in the path.
>
> chmod 755 ./Test.txt
>
> exec ./Test.txt
>
> exec is always the last command executed in a script. It doesn't return to the script.
That only seemed to close the terminal window. Though now upon "ls -la",
fish highlights Test.txt in green, and appends an asterisk. Its
permissions now appear "-rwxr-xr-x".
Whereas the following works.
{
eval (cat Test.txt)
}
--
www.netspeed.com.au/bryan/
More information about the linux
mailing list