OS/2, eCS & ArcaOS - Technical > Utilities
touch?
Dariusz Piatkowski:
Rick!
--- Quote from: Rick Smith on November 26, 2023, 10:11:17 pm ---...In linux I would just say touch newfile, then I could nano and edit it...touch does exist Ive noticed in Arca but does not act in how I would expect...
--- End quote ---
Lars' trick is by far the quickest one I think!!! (kudos to you sir 8))
...ok, but having said that, what's the issue you're running into with 'touch'? I just tried it here, no problems...
Rick Smith:
--- Quote from: Dave Yeo on November 27, 2023, 12:09:27 am ---touch new.file creates a new file here and it's how I usually create one with file commander.
--- Code: ---Directory of H:\tmp\test
11-26-23 3:06p <DIR> 0 ---- .
11-26-23 3:06p <DIR> 0 ---- ..
2 file(s) 0 bytes used
4,755,963 K bytes free
[H:\tmp\test]touch new.file
[H:\tmp\test]dir
Volume in drive H has no label.
The Volume Serial Number is 4558:45C3.
Directory of H:\tmp\test
11-26-23 3:07p <DIR> 0 ---- .
11-26-23 3:06p <DIR> 0 ---- ..
11-26-23 3:07p 0 124 a--- new.file
3 file(s) 0 bytes used
4,755,963 K bytes free
[H:\tmp\test]touch --version
touch (GNU coreutils) 8.31
--- End code ---
--- End quote ---
touch new.txt gets me
SYS0002: The system cannot find the file specified. "C:\temp\new.txt"
Regards
Rick
Dave Yeo:
That's weird, what does touch --version report? Perhaps you have another touch in your PATH? That looks like the wrong error for a coreutils touch.
Rick Smith:
--- Quote from: Dave Yeo on November 27, 2023, 04:15:13 am ---That's weird, what does touch --version report? Perhaps you have another touch in your PATH? That looks like the wrong error for a coreutils touch.
--- End quote ---
I get an error when I do touch --version.. Is this installed by default or do I have to install something with yum?
Rick
Dave Yeo:
It's part of the coreutils package. I thought it was installed by default, but perhaps not. Possible you have a broken install of it, which can be fixed by reinstalling.
Look in your @unixroot\usr\bin directory to see if it there.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version