Here is what I did, with the number in my prompt being the
exit code according to bash:

[acahalan_5x] 0 enterprise:cs$ ls -l
total 152
drwxr-xr-x   6 acahalan software    4096 Mar 13 19:26 .
drwxr-xr-x  39 acahalan software   24576 Mar 13 19:23 ..
-rw-rw-r--   1 acahalan software    2058 Mar 10 16:43 5.x_nightly
-rw-rw-r--   1 acahalan software    3781 Mar 10 16:43 5x_latest
-rw-rw-r--   1 acahalan software    3561 Mar 10 16:56 acahalan_5x
-rw-rw-r--   1 acahalan software    3492 Mar 10 16:41 acahalan_5x~
-rw-------   1 acahalan software    9772 Jun 17  1999 clearcase-use
drwxrwxr-x   2 acahalan software    4096 Mar 10 16:40 foo
drwxrwxr-x   2 acahalan software    4096 Mar 13 19:26 n
-rw-rw-r--   1 acahalan software    3492 Mar 10 16:53 old-acahalan_5x
drwxrwxr-x   2 acahalan software    4096 Jan 17 11:22 oldish
drwxrwxr-x   2 acahalan software    4096 Jan 17 11:22 vold
[acahalan_5x] 0 enterprise:cs$ mv * n
mv: n/n/foo: won't create hard link `n/n' to directory `Segmentation Fault
[acahalan_5x] 139 enterprise:cs$ ls
n  old-acahalan_5x  oldish  vold
[acahalan_5x] 0 enterprise:cs$ mv * n
mv: n/n: cannot overwrite directory
[acahalan_5x] 1 enterprise:cs$ ls
n
[acahalan_5x] 0 enterprise:cs$ mv --version
mv (GNU fileutils) 4.0
[acahalan_5x] 0 enterprise:cs$ uname -a
SunOS enterprise 5.6 Generic_105181-16 sun4u sparc
[acahalan_5x] 0 enterprise:cs$ ldd /usr/local/bin/mv
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1


Data for the current directory:

mode  040755
ino  1078374
dev  0x2cc0052  179,82
rdev 0x0  0,0
nlink 3
uid   2432
gid   53
size  4096
atime  952993608
mtime  952993606
ctime  952993606
blksize 8192
blocks  8
fname       
fpack       
fsid 46923858
basetype nfs
fstr 
flag 0

Reply via email to