CVS commit: src/bin/ls
Module Name:src Committed By: christos Date: Fri Feb 2 22:58:26 UTC 2024 Modified Files: src/bin/ls: ls.c Log Message: PR/57892: Roberto Branco: Print full pathname in error messages To generate a diff of this commit: cvs rdiff -u -r1.77 -r1.78 src/bin/ls/ls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/bin/ls/ls.c diff -u src/bin/ls/ls.c:1.77 src/bin/ls/ls.c:1.78 --- src/bin/ls/ls.c:1.77 Tue Jul 7 10:29:06 2020 +++ src/bin/ls/ls.c Fri Feb 2 17:58:26 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: ls.c,v 1.77 2020/07/07 14:29:06 christos Exp $ */ +/* $NetBSD: ls.c,v 1.78 2024/02/02 22:58:26 christos Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 19 #if 0 static char sccsid[] = "@(#)ls.c 8.7 (Berkeley) 8/5/94"; #else -__RCSID("$NetBSD: ls.c,v 1.77 2020/07/07 14:29:06 christos Exp $"); +__RCSID("$NetBSD: ls.c,v 1.78 2024/02/02 22:58:26 christos Exp $"); #endif #endif /* not lint */ @@ -445,7 +445,7 @@ traverse(int argc, char *argv[], int opt break; case FTS_DNR: case FTS_ERR: - warnx("%s: %s", p->fts_name, strerror(p->fts_errno)); + warnx("%s: %s", p->fts_path, strerror(p->fts_errno)); rval = EXIT_FAILURE; break; case FTS_D:
CVS commit: src/bin/ls
Module Name:src Committed By: christos Date: Fri Feb 2 22:58:26 UTC 2024 Modified Files: src/bin/ls: ls.c Log Message: PR/57892: Roberto Branco: Print full pathname in error messages To generate a diff of this commit: cvs rdiff -u -r1.77 -r1.78 src/bin/ls/ls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Re: CVS commit: src/bin/ls
In article 20140221065057.gm1...@apb-laptoy.apb.alt.za, Alan Barrett a...@cequrux.com wrote: On Thu, 20 Feb 2014, Christos Zoulas wrote: Modified Files: src/bin/ls: ls.1 ls.c ls.h print.c Log Message: Add -O (only leaf files) and -P (print full path), from tls@ Do any other ls implementations have such options? I like the idea of being able to run ls -ROP1 . instead of find . type f -print, but I'd like the options to be compatible with other operating systems. No. And the -O and -P letters are unused by linux, solaris, aix, hp/ux. christos
Re: CVS commit: src/bin/ls
On Fri, Feb 21, 2014 at 06:23:43PM +, Christos Zoulas wrote: Log Message: Add -O (only leaf files) and -P (print full path), from tls@ Do any other ls implementations have such options? I like the idea of being able to run ls -ROP1 . instead of find . type f -print, but I'd like the options to be compatible with other operating systems. No. And the -O and -P letters are unused by linux, solaris, aix, hp/ux. hurry and take it to posix! -- David A. Holland dholl...@netbsd.org
Re: CVS commit: src/bin/ls
On Sat, 22 Feb 2014, David Holland wrote: On Fri, Feb 21, 2014 at 06:23:43PM +, Christos Zoulas wrote: Log Message: Add -O (only leaf files) and -P (print full path), from tls@ Do any other ls implementations have such options? I like the idea of being able to run ls -ROP1 . instead of find . type f -print, but I'd like the options to be compatible with other operating systems. No. And the -O and -P letters are unused by linux, solaris, aix, hp/ux. hurry and take it to posix! This broke my build, btw. -- Hisashi T Fujinaka - ht...@twofifty.com BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte
Re: CVS commit: src/bin/ls
On Thu, 20 Feb 2014, Christos Zoulas wrote: Modified Files: src/bin/ls: ls.1 ls.c ls.h print.c Log Message: Add -O (only leaf files) and -P (print full path), from tls@ Do any other ls implementations have such options? I like the idea of being able to run ls -ROP1 . instead of find . type f -print, but I'd like the options to be compatible with other operating systems. --apb (Alan Barrett)