I've got a couple systems with SuSE 9.x installed on them and the ls -l output uses "2004-06-16 15:50" as the timestamps. I can override this with --time-style=locale, but on my redhat system I don't have to do that. Is this a complie-time option or an environment variable to change that? Thanks! -- -M There are 10 kinds of people in this world: Those who can count in binary and those who cannot.
On 21.06.04,16:25, Michael George wrote:
I've got a couple systems with SuSE 9.x installed on them and the ls -l output uses "2004-06-16 15:50" as the timestamps.
I can override this with --time-style=locale, but on my redhat system I don't have to do that.
Is this a complie-time option or an environment variable to change that?
Maybe you can try this in your alias file?
alias lsl="ls -l --time-style=locale"
--
Jostein Berntsen
Jostein Berntsen wrote:
On 21.06.04,16:25, Michael George wrote:
I've got a couple systems with SuSE 9.x installed on them and the ls -l output uses "2004-06-16 15:50" as the timestamps.
I can override this with --time-style=locale, but on my redhat system I don't have to do that.
Is this a complie-time option or an environment variable to change that?
Maybe you can try this in your alias file?
alias lsl="ls -l --time-style=locale"
or how about: alias ls="ls --time-style=locale" This way you don't have to use a new command and "ls" will work the way you want/expect. Louis
On Tue, Jun 22, 2004 at 12:18:03AM +0200, Jostein Berntsen wrote:
Maybe you can try this in your alias file?
alias lsl="ls -l --time-style=locale"
Yes, I know I can do that. I am just wondering if anyone knew if there is an environment variable that should be set but isn't, or is set and shouldn't. Thanks! -- -M There are 10 kinds of people in this world: Those who can count in binary and those who cannot.
On 22.06.04,07:06, Michael George wrote:
On Tue, Jun 22, 2004 at 12:18:03AM +0200, Jostein Berntsen wrote:
Maybe you can try this in your alias file?
alias lsl="ls -l --time-style=locale"
Yes, I know I can do that. I am just wondering if anyone knew if there is an environment variable that should be set but isn't, or is set and shouldn't.
You can try:
export LS_OPTIONS=-N --color=tty -T 0 no_proxy=localhost
--time-style=locale
-Jostein
--
Jostein Berntsen
On 22.06.04,13:20, Jostein Berntsen wrote:
On 22.06.04,07:06, Michael George wrote:
On Tue, Jun 22, 2004 at 12:18:03AM +0200, Jostein Berntsen wrote:
Maybe you can try this in your alias file?
alias lsl="ls -l --time-style=locale"
Yes, I know I can do that. I am just wondering if anyone knew if there is an environment variable that should be set but isn't, or is set and shouldn't.
You can try:
export LS_OPTIONS=-N --color=tty -T 0 no_proxy=localhost --time-style=locale
Oops. Should be:
export LS_OPTIONS="-N --color=tty -T 0 --time-style=locale"
- Jostein
--
Jostein Berntsen
On Tuesday June 22, 2004 06:20, Jostein Berntsen wrote:
On 22.06.04,07:06, Michael George wrote:
On Tue, Jun 22, 2004 at 12:18:03AM +0200, Jostein Berntsen wrote:
Maybe you can try this in your alias file?
alias lsl="ls -l --time-style=locale"
Yes, I know I can do that. I am just wondering if anyone knew if there is an environment variable that should be set but isn't, or is set and shouldn't.
You can try:
export LS_OPTIONS=-N --color=tty -T 0 no_proxy=localhost --time-style=locale
-Jostein
-- Jostein Berntsen
This has been a minor, but annoying problem with my system too. So I was happy to see this thread. However... I tried it and got: frankh:/opt> echo $LS_OPTIONS -N --color=auto -T 0 --time-style=locale frankh:/opt> /bin/ls -l total 20 drwxr-xr-x 8 root root 4096 2004-04-05 20:32 gnome drwxr-xr-x 8 root root 4096 2004-04-06 21:30 kde3 drwxr-xr-x 5 root root 4096 2004-06-21 13:01 MainActor_V5 drwxr-xr-x 5 root root 4096 2004-05-14 10:02 mozilla drwxr-xr-x 7 root root 4096 2004-06-16 14:58 staroffice7 frankh:/opt> /bin/ls -l --time-style=locale total 20 drwxr-xr-x 8 root root 4096 Apr 5 20:32 gnome drwxr-xr-x 8 root root 4096 Apr 6 21:30 kde3 drwxr-xr-x 5 root root 4096 Jun 21 13:01 MainActor_V5 drwxr-xr-x 5 root root 4096 May 14 10:02 mozilla drwxr-xr-x 7 root root 4096 Jun 16 14:58 staroffice7 frankh:/opt> IOW, the LS_OPTIONS seemingly had no effect. What did I miss? -- Frank Holt I&MT Technical Services Senior Dept. of Technical Solutions Phone : (414) 229-2982 Fax : (414) 229-6389 e-mail: frankh@uwm.edu
On Wednesday 23 June 2004 11:16 am, Frank Holt wrote:
IOW, the LS_OPTIONS seemingly had no effect. What did I miss?
What does "$ locale" report. Especially for LC_TIME. Are you using SLP 9.1? -- _/_/_/ Bob Pearson gottadoit@mailsnare.net _/_/_/ "Logic is in the eye of the logician." - Gloria Steinem
On Wednesday June 23, 2004 10:38, Bob Pearson wrote:
On Wednesday 23 June 2004 11:16 am, Frank Holt wrote:
IOW, the LS_OPTIONS seemingly had no effect. What did I miss?
What does "$ locale" report. Especially for LC_TIME. Are you using SLP 9.1? -- _/_/_/ Bob Pearson gottadoit@mailsnare.net _/_/_/ "Logic is in the eye of the logician." - Gloria Steinem
It is indeed SLP 9.1. The output: frankh ~> locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= -- Frank Holt I&MT Technical Services Senior Dept. of Technical Solutions Phone : (414) 229-2982 Fax : (414) 229-6389 e-mail: frankh@uwm.edu
On 23.06.04,10:16, Frank Holt wrote:
On Tuesday June 22, 2004 06:20, Jostein Berntsen wrote:
On 22.06.04,07:06, Michael George wrote:
...
I tried it and got:
frankh:/opt> echo $LS_OPTIONS -N --color=auto -T 0 --time-style=locale frankh:/opt> /bin/ls -l total 20 drwxr-xr-x 8 root root 4096 2004-04-05 20:32 gnome drwxr-xr-x 8 root root 4096 2004-04-06 21:30 kde3 drwxr-xr-x 5 root root 4096 2004-06-21 13:01 MainActor_V5 drwxr-xr-x 5 root root 4096 2004-05-14 10:02 mozilla drwxr-xr-x 7 root root 4096 2004-06-16 14:58 staroffice7 frankh:/opt> /bin/ls -l --time-style=locale total 20 drwxr-xr-x 8 root root 4096 Apr 5 20:32 gnome drwxr-xr-x 8 root root 4096 Apr 6 21:30 kde3 drwxr-xr-x 5 root root 4096 Jun 21 13:01 MainActor_V5 drwxr-xr-x 5 root root 4096 May 14 10:02 mozilla drwxr-xr-x 7 root root 4096 Jun 16 14:58 staroffice7 frankh:/opt>
IOW, the LS_OPTIONS seemingly had no effect. What did I miss?
Try:
echo "LS_OPTIONS=-N --color=tty -T 0 --time-style=locale" >> ~/.bashrc
and:
source ~/.bashrc
- Jostein
--
Jostein Berntsen
On 24.06.04,00:47, Jostein Berntsen wrote:
On 23.06.04,10:16, Frank Holt wrote:
On Tuesday June 22, 2004 06:20, Jostein Berntsen wrote:
On 22.06.04,07:06, Michael George wrote:
...
I tried it and got:
frankh:/opt> echo $LS_OPTIONS -N --color=auto -T 0 --time-style=locale frankh:/opt> /bin/ls -l total 20 drwxr-xr-x 8 root root 4096 2004-04-05 20:32 gnome drwxr-xr-x 8 root root 4096 2004-04-06 21:30 kde3 drwxr-xr-x 5 root root 4096 2004-06-21 13:01 MainActor_V5 drwxr-xr-x 5 root root 4096 2004-05-14 10:02 mozilla drwxr-xr-x 7 root root 4096 2004-06-16 14:58 staroffice7 frankh:/opt> /bin/ls -l --time-style=locale total 20 drwxr-xr-x 8 root root 4096 Apr 5 20:32 gnome drwxr-xr-x 8 root root 4096 Apr 6 21:30 kde3 drwxr-xr-x 5 root root 4096 Jun 21 13:01 MainActor_V5 drwxr-xr-x 5 root root 4096 May 14 10:02 mozilla drwxr-xr-x 7 root root 4096 Jun 16 14:58 staroffice7 frankh:/opt>
IOW, the LS_OPTIONS seemingly had no effect. What did I miss?
Try:
Should be: echo "export LS_OPTIONS=-N --color=tty -T 0 --time-style=locale" >> ~/.bashrc - Jostein
echo "LS_OPTIONS=-N --color=tty -T 0 --time-style=locale" >> ~/.bashrc
and:
source ~/.bashrc
--
Jostein Berntsen
On Thursday June 24, 2004 05:59, Jostein Berntsen wrote:
On 24.06.04,00:47, Jostein Berntsen wrote:
On 23.06.04,10:16, Frank Holt wrote:
On Tuesday June 22, 2004 06:20, Jostein Berntsen wrote:
On 22.06.04,07:06, Michael George wrote:
...
I tried it and got:
frankh:/opt> echo $LS_OPTIONS -N --color=auto -T 0 --time-style=locale frankh:/opt> /bin/ls -l total 20 drwxr-xr-x 8 root root 4096 2004-04-05 20:32 gnome drwxr-xr-x 8 root root 4096 2004-04-06 21:30 kde3 drwxr-xr-x 5 root root 4096 2004-06-21 13:01 MainActor_V5 drwxr-xr-x 5 root root 4096 2004-05-14 10:02 mozilla drwxr-xr-x 7 root root 4096 2004-06-16 14:58 staroffice7 frankh:/opt> /bin/ls -l --time-style=locale total 20 drwxr-xr-x 8 root root 4096 Apr 5 20:32 gnome drwxr-xr-x 8 root root 4096 Apr 6 21:30 kde3 drwxr-xr-x 5 root root 4096 Jun 21 13:01 MainActor_V5 drwxr-xr-x 5 root root 4096 May 14 10:02 mozilla drwxr-xr-x 7 root root 4096 Jun 16 14:58 staroffice7 frankh:/opt>
IOW, the LS_OPTIONS seemingly had no effect. What did I miss?
Try:
Should be:
echo "export LS_OPTIONS=-N --color=tty -T 0 --time-style=locale" >> ~/.bashrc
- Jostein
echo "LS_OPTIONS=-N --color=tty -T 0 --time-style=locale" >> ~/.bashrc
and:
source ~/.bashrc
-- Jostein Berntsen
No difference. frankh > echo $LS_OPTIONS -N --color=tty -T 0 --time-style=locale frankh > /bin/ls -l total 6 drwxrwxr-x 3 root users 2040 2004-06-17 11:56 download drwxr-xr-x 55 frankh users 3936 2004-06-28 08:59 frankh BTW, the command you suggested needs to be quoted so that RHS is quoted within the file: echo 'LS_OPTIONS="-N --color=tty -T 0 --time-style=locale"' >> ~/.bashrc The mystery continues.... -- Frank Holt I&MT Technical Services Senior Dept. of Technical Solutions Phone : (414) 229-2982 Fax : (414) 229-6389 e-mail: frankh@uwm.edu
On Thu, 2004-06-24 at 03:59, Jostein Berntsen wrote:
On 24.06.04,00:47, Jostein Berntsen wrote:
On 23.06.04,10:16, Frank Holt wrote:
On Tuesday June 22, 2004 06:20, Jostein Berntsen wrote:
On 22.06.04,07:06, Michael George wrote:
...
I tried it and got:
frankh:/opt> echo $LS_OPTIONS -N --color=auto -T 0 --time-style=locale frankh:/opt> /bin/ls -l total 20 drwxr-xr-x 8 root root 4096 2004-04-05 20:32 gnome drwxr-xr-x 8 root root 4096 2004-04-06 21:30 kde3 drwxr-xr-x 5 root root 4096 2004-06-21 13:01 MainActor_V5 drwxr-xr-x 5 root root 4096 2004-05-14 10:02 mozilla drwxr-xr-x 7 root root 4096 2004-06-16 14:58 staroffice7 frankh:/opt> /bin/ls -l --time-style=locale total 20 drwxr-xr-x 8 root root 4096 Apr 5 20:32 gnome drwxr-xr-x 8 root root 4096 Apr 6 21:30 kde3 drwxr-xr-x 5 root root 4096 Jun 21 13:01 MainActor_V5 drwxr-xr-x 5 root root 4096 May 14 10:02 mozilla drwxr-xr-x 7 root root 4096 Jun 16 14:58 staroffice7 frankh:/opt>
IOW, the LS_OPTIONS seemingly had no effect. What did I miss?
Try:
Should be:
echo "export LS_OPTIONS=-N --color=tty -T 0 --time-style=locale" >> ~/.bashrc
- Jostein
echo "LS_OPTIONS=-N --color=tty -T 0 --time-style=locale" >> ~/.bashrc
and:
source ~/.bashrc
Watch out for that line wrap when using the middle button to paste into konsole. In my case .bashrc did not have a newline at the end so I had to directly edit it to fix this. CWSIV
On Tue, 22 Jun 2004, Michael George wrote:
On Tue, Jun 22, 2004 at 12:18:03AM +0200, Jostein Berntsen wrote:
Maybe you can try this in your alias file?
alias lsl="ls -l --time-style=locale"
Yes, I know I can do that. I am just wondering if anyone knew if there is an environment variable that should be set but isn't, or is set and shouldn't.
If you're using bash then all the environment variables are set in /etc/bash.bashrc you can dig around in there and try to change stuff there. bb
On Tuesday 22 June 2004 16:04, Brad Bendily wrote:
On Tue, 22 Jun 2004, Michael George wrote:
On Tue, Jun 22, 2004 at 12:18:03AM +0200, Jostein Berntsen wrote:
Maybe you can try this in your alias file?
alias lsl="ls -l --time-style=locale"
Yes, I know I can do that. I am just wondering if anyone knew if there is an environment variable that should be set but isn't, or is set and shouldn't.
If you're using bash then all the environment variables are set in /etc/bash.bashrc you can dig around in there and try to change stuff there.
leen@cc22149-a:~/tmp> head -n 6 /etc/bash.bashrc # /etc/bash.bashrc for SuSE Linux # # PLEASE DO NOT CHANGE /etc/bash.bashrc There are chances that your changes # will be lost during system upgrades. Instead use /etc/bash.bashrc.local # for your local settings, favourite global aliases, VISUAL and EDITOR # variables, etc ... leen@cc22149-a:~/tmp> Cheers, Leen
leen@cc22149-a:~/tmp> head -n 6 /etc/bash.bashrc # /etc/bash.bashrc for SuSE Linux # # PLEASE DO NOT CHANGE /etc/bash.bashrc There are chances that your changes # will be lost during system upgrades. Instead use /etc/bash.bashrc.local # for your local settings, favourite global aliases, VISUAL and EDITOR # variables, etc ... leen@cc22149-a:~/tmp>
yes yes, but I made a log of the changes I made and if I have to reapply them then no big deal. plus I don't think it ever actually reads the settings from /etc/bash.bashrc.local . Has anyone else got this to work? It may work, it's been a while since I set things up. bb
On Tuesday 22 June 2004 16:36, Brad Bendily wrote:
leen@cc22149-a:~/tmp> head -n 6 /etc/bash.bashrc # /etc/bash.bashrc for SuSE Linux # # PLEASE DO NOT CHANGE /etc/bash.bashrc There are chances that your changes # will be lost during system upgrades. Instead use /etc/bash.bashrc.local # for your local settings, favourite global aliases, VISUAL and EDITOR # variables, etc ... leen@cc22149-a:~/tmp>
yes yes, but I made a log of the changes I made and if I have to reapply them then no big deal. plus I don't think it ever actually reads the settings from /etc/bash.bashrc.local .
Wrong. ;) (Ok, depends on your shell)
Has anyone else got this to work? It may work, it's been a while since I set things up.
leen@cc22149-a:/etc> tail -n 11 /etc/bash.bashrc | head -n 7 if test "$is" != "ash" ; then # # And now let's see if there is a local bash.bashrc # (for options defined by your sysadmin, not SuSE Linux) # test -s /etc/bash.bashrc.local && . /etc/bash.bashrc.local fi I couldn't resist to check this: it's in there since 8.0 (april 2002). ;) Cheers, Leen
* Brad Bendily
yes yes, but I made a log of the changes I made and if I have to reapply them then no big deal. plus I don't think it ever actually reads the settings from /etc/bash.bashrc.local .
Why wouldn't it work? Do you believe that SuSE put it there for decoration? An absurd statement.
Has anyone else got this to work? It may work, it's been a while since I set things up.
Did *you* try it before asking? pat@wahoo:~> tail /etc/bash.bashrc # # And now let's see if there is a local bash.bashrc # (for options defined by your sysadmin, not SuSE Linux) # test -s /etc/bash.bashrc.local && . /etc/bash.bashrc.local fi # # End of /etc/bash.bashrc # -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
participants (9)
-
Bob Pearson
-
Brad Bendily
-
Carl William Spitzer IV
-
Frank Holt
-
Jostein Berntsen
-
Leendert Meyer
-
Louis Richards
-
Michael George
-
Patrick Shanahan