postmodern / chruby

Changes the current Ruby
MIT License
2.87k stars 190 forks source link

Change options passed to ls on rubies search #397

Closed CaptChrisD closed 6 years ago

CaptChrisD commented 6 years ago

On macOS High Sierra the options to ls must be lower case.

Previously when running $ source /usr/local/share/chruby/chruby.sh

would result in Unrecognized option: 'A'.

havenwood commented 6 years ago

The -a flag would stop ignoring entries that start with a dot. The desired behavior from the -A flag is to not list the implied . and .. directories.

martinsp commented 6 years ago

I have a macOS High Sierra and ls -A (with a capital 'a') is working correctly

$ sw_vers -productVersion
10.13.1
$ ls -A ~/Tmp/test
t1.txt t2.txt