https://bugzilla.novell.com/show_bug.cgi?id=799241
https://bugzilla.novell.com/show_bug.cgi?id=799241#c4
--- Comment #4 from Peter Maloney 2013-03-01 11:47:28 UTC ---
Sorry, I don't know the other shells. My solution went in my .bash_profile.
I tried it with zsh and ksh, with same results. Both work fine. Here's zsh.
peter@peter:~> unset LS_OPTIONS2
peter@peter:~> unset LS_OPTIONS
peter@peter:~> alias ls='ls ${LS_OPTIONS2[@]}'
peter@peter:~> LS_OPTIONS2=(-al --full-time)
peter@peter:~> IFS=$'\n'
peter@peter:~> cd ~/tmp/test1
peter@peter:~/tmp/test1> ls
total 24
drwxr-xr-x 4 peter users 4096 2012-09-13 17:12:34.847347528 +0200 .
drwxr-xr-x 45 peter vboxusers 12288 2013-02-27 14:10:37.202287674 +0100 ..
drwxr-xr-x 2 peter users 4096 2012-09-13 15:40:13.266210947 +0200 test2
drwxr-xr-x 2 peter users 4096 2012-09-13 15:40:08.618053315 +0200 test3
prw-r--r-- 1 peter users 0 2012-09-13 17:12:37.455228460 +0200
testpipe
I installed dash (never heard of it), and it doesn't like the () arrays. And I
read that dash has no arrays.
So what do you suggest? Is it clean to implement it with an if/case?
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.