I am running zsh on a (new to me) iMac w/ latest OS X
had to add a line to .zshrc "setopt INTERACTIVE_COMMENTS"
to allow command line comments with # (in a script fine but command line not)
It works for a built-in like ls
but not for one of my custom scripts (like lsdot) accessed from $PATH
Chris
On 2020-08-21 8:42 p.m., p...@keystreams.net wrote:
It's the same as in bash. Not sure why it doesn't work for you.
In my zsh shell:
$ echo $SHELL
/usr/bin/zsh
$ cd /tmp
$ d=$(ls)r
$ echo $d
file1 file2 file3 ...
On 8/21/20 8:17 PM, caziz wrote:
ls -lt $(lsdot)
_______________________________________________
clug-talk mailing list
clug-talk@clug.ca
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying
_______________________________________________
clug-talk mailing list
clug-talk@clug.ca
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying