mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-11 13:59:18 +03:00
36d59acf97
fixed configure.ac added lib/vfs/mc-vfs/fish/Makefile.am lib/vfs/mc-vfs/fishdef.h moved lib/vfs/mc-vfs/fish/README.fish fixed lib/vfs/mc-vfs/Makefile.am added external scripts in lib/vfs/mc-vfs/fish/ * ls - get gile list * mkdir - make directory * rmdir - remove directory * unlink - delete file * chown - change owner/group of file * chmod - change mode of file * mv - move file * ln - make symlink * hardlink - make hardlink * send - copy file to target host * append - append file to target host (if exists) * get - copy file from target host * info - return resalts of scan remote host (have: perl, sed, awk, etc) Signed-off-by: Andrew Borodin <aborodin@vmail.ru> Signed-off-by: Ilia Maslakov <il.smind@gmail.com> fish.c: optimization and code cleanup Signed-off-by: Andrew Borodin <aborodin@vmail.ru> optimization of FISH environment variables. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
15 lines
308 B
Plaintext
Executable File
15 lines
308 B
Plaintext
Executable File
#RETR $FISH_FILENAME
|
|
FILENAME="/${FISH_FILENAME}"
|
|
export LC_TIME=C
|
|
if dd if="${FILENAME}" of=/dev/null bs=1 count=1 2>/dev/null ; then
|
|
ls -ln "${FILENAME}" 2>/dev/null | (
|
|
read p l u g s r
|
|
echo $s
|
|
)
|
|
echo "### 100"
|
|
cat "${FILENAME}"
|
|
echo "### 200"
|
|
else
|
|
echo "### 500"
|
|
fi
|