1 |
#!/bin/sh |
#!/bin/sh |
2 |
# Get modification time of a file or directory and pretty-print it. |
# Get modification time of a file or directory and pretty-print it. |
3 |
|
|
4 |
scriptversion=2003-11-09.00 |
scriptversion=2004-12-08.12 |
5 |
|
|
6 |
# Copyright (C) 1995, 1996, 1997, 2003 Free Software Foundation, Inc. |
# Copyright (C) 1995, 1996, 1997, 2003, 2004 Free Software Foundation, Inc. |
7 |
# written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995 |
# written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995 |
8 |
# |
# |
9 |
# This program is free software; you can redistribute it and/or modify |
# This program is free software; you can redistribute it and/or modify |
80 |
# words should be skipped to get the date. |
# words should be skipped to get the date. |
81 |
|
|
82 |
# On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x" below. |
# On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x" below. |
83 |
set - x`$ls_command /` |
set x`ls -l -d /` |
84 |
|
|
85 |
# Find which argument is the month. |
# Find which argument is the month. |
86 |
month= |
month= |
107 |
done |
done |
108 |
|
|
109 |
# Get the extended ls output of the file or directory. |
# Get the extended ls output of the file or directory. |
110 |
set - x`eval "$ls_command \"\$save_arg1\""` |
set x`eval "$ls_command \"\$save_arg1\""` |
111 |
|
|
112 |
# Remove all preceding arguments |
# Remove all preceding arguments |
113 |
eval $command |
eval $command |