[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Warn when editing read-only files

From: Andrew L. Moore
Subject: Warn when editing read-only files
Date: Sun, 10 Dec 2023 22:29:22 -0500
User-agent: Mozilla Thunderbird

Antonio Diaz Diaz <antonio@gnu.org> writes:
] How do you propose to implement such a warning while remaining
] POSIX-compliant?

In github.com/slewsys/ed this is implemented by reporting 'Read-only' if ed is in verbose mode:

$ ed -v /etc/os-release
/etc/os-release: File is read-only

reply via email to

[Prev in Thread] Current Thread [Next in Thread]