You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ echo foo >script.sfdisk
$ head -c 1K /dev/zero >img
$ fdisk img
## press I
## type script<Tab>
## you should see script.sfdisk being suggested. press enter.
result:
Welcome to fdisk (util-linux 2.39.3).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
Created a new DOS (MBR) disklabel with disk identifier 0x4656ec7a.
Command (m for help): I
Enter script file name: script.sfdisk
Cannot open script.sfdisk : No such file or directory
Command (m for help):
For this bad script file I expect:
Command (m for help): I
Enter script file name: script.sfdisk
Cannot open script.sfdisk: Invalid argument
The text was updated successfully, but these errors were encountered:
I never programmed with readline. Can't be too difficult. Probably it belongs into one of the few HAVE_LIBREADLINE occurrences. I'll look in the next few days, whether I'm able to do that. If I don't respond after that, assume I couldn't do it.
How to reproduce:
result:
For this bad script file I expect:
The text was updated successfully, but these errors were encountered: